LatheGeometry.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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">Class for generating meshes with axial symmetry. Possible uses include donuts, pipes, vases etc. The lathe rotate around the Z axis.</div>
  13. <h2>Constructor</h2>
  14. <h3>[name]([page:Array points], [page:Integer segments], [page:Float phiStart], [page:Float phiLength])</h3>
  15. <div>
  16. points — Array of Vector3s. Since this rotates around Z axis, the y-values can be set to 0<br />
  17. segments — the number of circumference segments to generate. Default is 12.<br />
  18. phiStart — the starting angle in radians. Default is 0.<br />
  19. phiLength — the radian (0 to 2*PI) range of the lathed section 2*PI is a closed lathe, less than 2PI is a portion. Default is 2*PI
  20. </div>
  21. <div>
  22. todo
  23. </div>
  24. <h2>Source</h2>
  25. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  26. </body>
  27. </html>