You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.8 KiB
HTML

<!DOCTYPE html>
<html lang="ar">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body class="rtl">
[page:BufferGeometry] &rarr; [page:CylinderGeometry] &rarr;
<h1>[name]</h1>
<p class="desc">فئة لإنشاء هندسة المخروط.</p>
<iframe id="scene" src="scenes/geometry-browser.html#ConeGeometry"></iframe>
<script>
// iOS iframe auto-resize workaround
if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
const scene = document.getElementById( 'scene' );
scene.style.width = getComputedStyle( scene ).width;
scene.style.height = getComputedStyle( scene ).height;
scene.setAttribute( 'scrolling', 'no' );
}
</script>
<h2>مثال الكود</h>
<code>
const geometry = new THREE.ConeGeometry( 5, 20, 32 );
const material = new THREE.MeshBasicMaterial( {color: 0xffff00} );
const cone = new THREE.Mesh(geometry, material ); scene.add( cone );
</code>
<h2>المنشئ (Constructor)</h2>
<h3>
[name]([param:Float radius], [param:Float height], [param:Integer radialSegments], [param:Integer heightSegments], [param:Boolean openEnded], [param:Float thetaStart], [param:Float thetaLength])
</h3>
<p>
radius — نصف قطر قاعدة المخروط. الافتراضي هو 1.<br />
height — ارتفاع المخروط. الافتراضي هو 1.<br />
radialSegments — عدد الوجوه المقسمة حول محيط
المخروط. الافتراضي هو 32<br />
heightSegments — عدد صفوف الوجوه على طول ارتفاع المخروط.
الافتراضي هو 1.<br />
openEnded — مؤشر منطقي يشير إلى ما إذا كانت قاعدة المخروط مفتوحة أو
مغلقة. الافتراضي هو false، أي مغلق.<br />
thetaStart — زاوية البدء للشريحة الأولى، الافتراضي = 0 (موقع الساعة
الثالثة).<br />
thetaLength — الزاوية المركزية، وغالبًا ما تسمى ثيتا، للقطاع الدائري. الافتراضي هو 2 * Pi، مما يجعله مخروطًا كاملاً.
</p>
<h2>الخصائص (Properties)</h2>
<p>انظر فئة [page:CylinderGeometry] الأساسية للخصائص المشتركة.</p>
<h3>[property:Object parameters]</h3>
<p>
كائن يحتوي على خاصية لكل من معلمات المنشئ. أي تعديل بعد التجسيد لا يغير
الهندسة.
</p>
<h2>الطرق (Methods)</h2>
<p>انظر فئة [page:CylinderGeometry] الأساسية للطرق المشتركة.</p>
<h2>المصدر (Source)</h2>
<p>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</p>
</body>
</html>