CubeGeometry.html 1.2 KB

12345678910111213141516171819202122232425262728293031
  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. <h1>CubeGeometry</h1>
  11. <div class="desc">CubeGeometry is the quadrilateral primitive geometry class. It is typically used for creating a cube or irregular quadrilateral of the dimensions provided within the (optional) 'width', 'height', & 'depth' constructor arguments.</div>
  12. <h2>Constructor</h2>
  13. <h3>[name]([page:Float width], [page:Float height], [page:Float depth], [page:Integer widthSegments], [page:Integer heightSegments], [page:Integer depthSegments])</h3>
  14. <div>
  15. width — Width of the sides on the X axis.<br />
  16. height — Height of the sides on the Y axis.<br />
  17. depth — Depth of the sides on the Z axis.<br />
  18. widthSegments — Number of segmented faces along the width of the sides.<br />
  19. heightSegments — Number of segmented faces along the height of the sides.<br />
  20. depthSegments — Number of segmented faces along the depth of the sides.
  21. </div>
  22. <h2>Source</h2>
  23. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  24. </body>
  25. </html>