CubeGeometry.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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>CubeGeometry(width, height, depth, segmentsWidth, segmentsHeight, segmentsDepth, materials, side)</h3>
  14. width — Width of the quad on the X axis.
  15. height — Height of the quad on the Y axis.
  16. depth — Depth of the quad on the Z axis.
  17. segmentsWidth — Number of segmented faces along the width of the quad.
  18. segmentsHeight — Number of segmented faces along the height of the quad.
  19. segmentsDepth — Number of segmented faces along the depth of the quad.
  20. materials — A material defined in array form.<h3>.[page:Material]</h3>
  21. sides — The culling policy, which is either THREE.FrontSide , THREE.BackSide , or THREE.DoubleSide
  22. <h2>Properties</h2>
  23. <h3>.[page:Vector3 todo]</h3>
  24. <h2>Methods</h2>
  25. <h3>this.computeCentroids()</h3>
  26. <div>
  27. todo — todo<br />
  28. </div>
  29. <h3>this.mergeVertices()</h3>
  30. <div>
  31. todo — todo<br />
  32. </div>
  33. <h2>Source</h2>
  34. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  35. </body>
  36. </html>