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.

85 lines
3.0 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;
<h1>[name]</h1>
<p class="desc">فئة لإنشاء هندسة الأسطوانة.</p>
<iframe
id="scene"
src="scenes/geometry-browser.html#CylinderGeometry"
></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>مثال الكود</h2>
<code>
const geometry = new THREE.CylinderGeometry( 5, 5, 20, 32 );
const material = new THREE.MeshBasicMaterial( {color: 0xffff00} );
const cylinder = new THREE.Mesh( geometry, material ); scene.add( cylinder );
</code>
<h2>المنشئ (Constructor)</h2>
<h3>
[name]([param:Float radiusTop], [param:Float radiusBottom], [param:Float height], [param:Integer radialSegments], [param:Integer heightSegments],
[param:Boolean openEnded], [param:Float thetaStart], [param:Float thetaLength])
</h3>
<p>
radiusTop — نصف قطر الأسطوانة في الأعلى. الافتراضي هو 1.<br />
radiusBottom — نصف قطر الأسطوانة في الأسفل. الافتراضي هو 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:BufferGeometry] الأساسية للخصائص المشتركة.</p>
<h3>[property:Object parameters]</h3>
<p>
كائن يحتوي على خاصية لكل من معلمات المنشئ. أي تعديل بعد التجسيد لا يغير
الهندسة.
</p>
<h2>الطرق (Methods)</h2>
<p>انظر فئة [page:BufferGeometry] الأساسية للطرق المشتركة.</p>
<h2>المصدر (Source)</h2>
<p>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</p>
</body>
</html>