CubeGeometry.html 1.4 KB

123456789101112131415161718192021222324252627282930313233
  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 segmentsWidth], [page:Integer segmentsHeight], [page:Integer segmentsDepth], [page:Array materials], [page:Array sides])</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. segmentsWidth — Number of segmented faces along the width of the sides.<br />
  19. segmentsHeight — Number of segmented faces along the height of the sides.<br />
  20. segmentsDepth — Number of segmented faces along the depth of the sides.<br />
  21. materials — An array containing six [page:Material]s.<br />
  22. sides — An array containig six [page:Boolean]s defining whether the side needs to be created.
  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>