ConeGeometry.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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; [page:CylinderGeometry] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">فئة لإنشاء هندسة المخروط.</p>
  13. <iframe id="scene" src="scenes/geometry-browser.html#ConeGeometry"></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>مثال الكود</h>
  24. <code>
  25. const geometry = new THREE.ConeGeometry( 5, 20, 32 );
  26. const material = new THREE.MeshBasicMaterial( {color: 0xffff00} );
  27. const cone = new THREE.Mesh(geometry, material ); scene.add( cone );
  28. </code>
  29. <h2>المنشئ (Constructor)</h2>
  30. <h3>
  31. [name]([param:Float radius], [param:Float height], [param:Integer radialSegments], [param:Integer heightSegments], [param:Boolean openEnded], [param:Float thetaStart], [param:Float thetaLength])
  32. </h3>
  33. <p>
  34. radius — نصف قطر قاعدة المخروط. الافتراضي هو 1.<br />
  35. height — ارتفاع المخروط. الافتراضي هو 1.<br />
  36. radialSegments — عدد الوجوه المقسمة حول محيط
  37. المخروط. الافتراضي هو 32<br />
  38. heightSegments — عدد صفوف الوجوه على طول ارتفاع المخروط.
  39. الافتراضي هو 1.<br />
  40. openEnded — مؤشر منطقي يشير إلى ما إذا كانت قاعدة المخروط مفتوحة أو
  41. مغلقة. الافتراضي هو false، أي مغلق.<br />
  42. thetaStart — زاوية البدء للشريحة الأولى، الافتراضي = 0 (موقع الساعة
  43. الثالثة).<br />
  44. thetaLength — الزاوية المركزية، وغالبًا ما تسمى ثيتا، للقطاع الدائري. الافتراضي هو 2 * Pi، مما يجعله مخروطًا كاملاً.
  45. </p>
  46. <h2>الخصائص (Properties)</h2>
  47. <p>انظر فئة [page:CylinderGeometry] الأساسية للخصائص المشتركة.</p>
  48. <h3>[property:Object parameters]</h3>
  49. <p>
  50. كائن يحتوي على خاصية لكل من معلمات المنشئ. أي تعديل بعد التجسيد لا يغير
  51. الهندسة.
  52. </p>
  53. <h2>الطرق (Methods)</h2>
  54. <p>انظر فئة [page:CylinderGeometry] الأساسية للطرق المشتركة.</p>
  55. <h2>المصدر (Source)</h2>
  56. <p>
  57. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  58. </p>
  59. </body>
  60. </html>