Constructor
new BoxGeometry( width : number, height : number, depth : number, widthSegments : number, heightSegments : number, depthSegments : number )
Constructs a new box geometry.
width |
The width. That is, the length of the edges parallel to the X axis. |
height |
The height. That is, the length of the edges parallel to the Y axis. |
depth |
The depth. That is, the length of the edges parallel to the Z axis. |
widthSegments |
Number of segmented rectangular faces along the width of the sides. |
heightSegments |
Number of segmented rectangular faces along the height of the sides. |
depthSegments |
Number of segmented rectangular faces along the depth of the sides. |
Properties
.parameters : Object
Holds the constructor parameters that have been used to generate the geometry. Any modification after instantiation does not change the geometry.
Static Methods
.fromJSON( data : Object ) : BoxGeometry
Factory method for creating an instance of this class from the given JSON object.
data |
A JSON object representing the serialized geometry. |
- Returns: A new instance.