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.
75 lines
2.4 KiB
HTML
75 lines
2.4 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] →
|
|
|
|
<h1>[name]</h1>
|
|
|
|
<p class="desc">فئة لإنشاء هندسة حلقة ثنائية الأبعاد.</p>
|
|
|
|
<iframe id="scene" src="scenes/geometry-browser.html#RingGeometry"></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>Code Example</h2>
|
|
|
|
<code>
|
|
const geometry = new THREE.RingGeometry( 1, 5, 32 );
|
|
const material = new THREE.MeshBasicMaterial( { color: 0xffff00, side: THREE.DoubleSide } );
|
|
const mesh = new THREE.Mesh( geometry, material ); scene.add( mesh );
|
|
</code>
|
|
|
|
<h2>المنشئ (Constructor)</h2>
|
|
|
|
<h3>
|
|
[name]([param:Float innerRadius], [param:Float outerRadius],
|
|
[param:Integer thetaSegments], [param:Integer phiSegments], [param:Float thetaStart], [param:Float thetaLength])
|
|
</h3>
|
|
<p>
|
|
innerRadius — الافتراضي هو 0.5. <br />
|
|
outerRadius — الافتراضي هو 1. <br />
|
|
thetaSegments — عدد القطاعات. يعني الرقم الأعلى أن الحلقة ستكون
|
|
أكثر دائرية. الحد الأدنى هو 3. الافتراضي هو 32. <br />
|
|
phiSegments — الحد الأدنى هو 1. الافتراضي هو 1.<br />
|
|
thetaStart — زاوية البدء. الافتراضي هو 0. <br />
|
|
thetaLength — زاوية مركزية. الافتراضي هو Math.PI * 2.
|
|
</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>
|