123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <script src="../../../list.js"></script>
- <script src="../../../page.js"></script>
- <link type="text/css" rel="stylesheet" href="../../../page.css" />
- </head>
- <body>
- <h1>CubeGeometry</h1>
- <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>
- <h2>Constructor</h2>
- <h3>CubeGeometry(width, height, depth, segmentsWidth, segmentsHeight, segmentsDepth, materials, side)</h3>
- width — Width of the quad on the X axis.
- height — Height of the quad on the Y axis.
- depth — Depth of the quad on the Z axis.
- segmentsWidth — Number of segmented faces along the width of the quad.
- segmentsHeight — Number of segmented faces along the height of the quad.
- segmentsDepth — Number of segmented faces along the depth of the quad.
- materials — A material defined in array form.<h3>.[page:Material]</h3>
- sides — The culling policy, which is either THREE.FrontSide , THREE.BackSide , or THREE.DoubleSide
- <h2>Properties</h2>
- <h3>.[page:Vector3 todo]</h3>
- <h2>Methods</h2>
- <h3>this.computeCentroids()</h3>
- <div>
- todo — todo<br />
- </div>
- <h3>this.mergeVertices()</h3>
- <div>
- todo — todo<br />
- </div>
- <h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|