View source
class CubeGeometry
package away3d.primitives
extends PrimitiveBase › Geometry › NamedAssetBase
Available on all platforms
A Cube primitive mesh.
Constructor
new(width:Float = 100, height:Float = 100, depth:Float = 100, segmentsW:Int = 1, segmentsH:Int = 1, segmentsD:Int = 1, tile6:Bool = true)
Creates a new Cube object.
Parameters:
width | The size of the cube along its X-axis. |
|---|---|
height | The size of the cube along its Y-axis. |
depth | The size of the cube along its Z-axis. |
segmentsW | The number of segments that make up the cube along the X-axis. |
segmentsH | The number of segments that make up the cube along the Y-axis. |
segmentsD | The number of segments that make up the cube along the Z-axis. |
tile6 | The type of uv mapping to use. When true, a texture will be subdivided in a 2x3 grid, each used for a single face. When false, the entire image is mapped on each face. |