CylinderGeometry.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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">todo</div>
  13. <h2>Constructor</h2>
  14. <h3>[name]([page:Float radiusTop], [page:Float radiusBottom], [page:Float height], [page:Integer radiusSegments], [page:Integer heightSegments], [page:Boolean openEnded])</h3>
  15. <div>
  16. radiusTop — Radius of the cylinder at the top. Default is 20.<br />
  17. radiusBottom — Radius of the cylinder at the bottom. Default is 20.<br />
  18. height — Height of the cylinder. Default is 100.<br />
  19. radiusSegments — Number of segmented faces around the circumference of the cylinder. Default is 8<br />
  20. heightSegments — Number of rows of faces along the height of the cylinder. Default is 1.<br />
  21. openEnded — A Boolean indicating whether the ends of the cylinder are open or capped. Default is false, meaning capped.
  22. </div>
  23. <h2>Properties</h2>
  24. <div>
  25. Each of the contructor parameters is accessible as a property of the same name. Any modification of these properties after instantiation does not change the geometry.
  26. </div>
  27. <h2>Source</h2>
  28. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  29. </body>
  30. </html>