SphereGeometry.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <script src="../../../list.js"></script>
  6. <script src="../../../page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="../../../page.css" />
  8. </head>
  9. <body>
  10. [page:Geometry] &rarr;
  11. <h1>[name]</h1>
  12. <div class="desc">A class for generating sphere geometries</div>
  13. <h2>Constructor</h2>
  14. <h3>[name]([page:todo radius], [page:todo widthSegments], [page:todo heightSegments], [page:todo phiStart], [page:todo phiLength], [page:todo thetaStart], [page:todo thetaLength])</h3>
  15. <div>
  16. radius -- todo <br />
  17. widthSegments -- todo <br />
  18. heightSegments -- todo <br />
  19. phiStart -- todo <br />
  20. phiLength -- todo <br />
  21. thetaStart -- todo <br />
  22. thetaLength -- todo
  23. </div>
  24. <div>
  25. <div>
  26. radius — sphere radius. Default is 50.<br />
  27. widthSegments — number of horizontal segments. Minimum value is 3, and the default is 8.<br />
  28. heightSegments — number of vertical segments. Minimum value is 2, and the default is 6.<br />
  29. phiStart — specify horizontal starting angle. Default is 0.<br />
  30. phiLength — specify horizontal sweep angle size. Default is Math.PI * 2.<br />
  31. thetaStart — specify vertical starting angle. Default is 0.<br />
  32. thetaLength — specify vertical sweep angle size. Default is Math.PI.<br />
  33. </div>
  34. <div>
  35. The geometry is created by sweeping and calculating vertexes around the Y axis (horizontal sweep) and the Z axis (vertical sweep). Thus, incomplete spheres (akin to <em>'sphere slices'</em>) can be created through the use of different values of phiStart, phiLength, thetaStart and thetaLength, in order to define the points in which we start (or end) calculating those vertices.
  36. </div>
  37. <h2>Properties</h2>
  38. <h3>.[page:number thetaStart]</h3>
  39. <div>
  40. todo
  41. </div>
  42. <h3>.[page:number thetaLength]</h3>
  43. <div>
  44. todo
  45. </div>
  46. <h3>.[page:number heightSegments]</h3>
  47. <div>
  48. todo
  49. </div>
  50. <h3>.[page:number widthSegments]</h3>
  51. <div>
  52. todo
  53. </div>
  54. <h3>.[page:number phiLength]</h3>
  55. <div>
  56. todo
  57. </div>
  58. <h3>.[page:number phiStart]</h3>
  59. <div>
  60. todo
  61. </div>
  62. <h3>.[page:number radius]</h3>
  63. <div>
  64. todo
  65. </div>
  66. <h2>Source</h2>
  67. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  68. </body>
  69. </html>