RingGeometry.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <html lang="ar">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body class="rtl">
  10. [page:BufferGeometry] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">فئة لإنشاء هندسة حلقة ثنائية الأبعاد.</p>
  13. <iframe id="scene" src="scenes/geometry-browser.html#RingGeometry"></iframe>
  14. <script>
  15. // iOS iframe auto-resize workaround
  16. if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
  17. const scene = document.getElementById( 'scene' );
  18. scene.style.width = getComputedStyle( scene ).width;
  19. scene.style.height = getComputedStyle( scene ).height;
  20. scene.setAttribute( 'scrolling', 'no' );
  21. }
  22. </script>
  23. <h2>Code Example</h2>
  24. <code>
  25. const geometry = new THREE.RingGeometry( 1, 5, 32 );
  26. const material = new THREE.MeshBasicMaterial( { color: 0xffff00, side: THREE.DoubleSide } );
  27. const mesh = new THREE.Mesh( geometry, material ); scene.add( mesh );
  28. </code>
  29. <h2>المنشئ (Constructor)</h2>
  30. <h3>
  31. [name]([param:Float innerRadius], [param:Float outerRadius],
  32. [param:Integer thetaSegments], [param:Integer phiSegments], [param:Float thetaStart], [param:Float thetaLength])
  33. </h3>
  34. <p>
  35. innerRadius — الافتراضي هو 0.5. <br />
  36. outerRadius — الافتراضي هو 1. <br />
  37. thetaSegments — عدد القطاعات. يعني الرقم الأعلى أن الحلقة ستكون
  38. أكثر دائرية. الحد الأدنى هو 3. الافتراضي هو 32. <br />
  39. phiSegments — الحد الأدنى هو 1. الافتراضي هو 1.<br />
  40. thetaStart — زاوية البدء. الافتراضي هو 0. <br />
  41. thetaLength — زاوية مركزية. الافتراضي هو Math.PI * 2.
  42. </p>
  43. <h2>الخصائص (Properties)</h2>
  44. <p>انظر فئة [page:BufferGeometry] الأساسية للخصائص المشتركة.</p>
  45. <h3>[property:Object parameters]</h3>
  46. <p>
  47. كائن به خاصية لكل من معلمات المُنشئ. أي تعديل بعد التجسيد لا يغير الهندسة.
  48. </p>
  49. <h2>الطرق (Methods)</h2>
  50. <p>انظر فئة [page:BufferGeometry] الأساسية للطرق المشتركة.</p>
  51. <h2>المصدر (Source)</h2>
  52. <p>
  53. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  54. </p>
  55. </body>
  56. </html>