Constructor
new ExtrudeGeometry( shapes : Shape | Array.<Shape>, options : ExtrudeGeometry~Options )
Constructs a new extrude geometry.
| shapes |
A shape or an array of shapes. |
| options |
The extrude settings. |
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, shapes : Array.<Shape> ) : ExtrudeGeometry
Factory method for creating an instance of this class from the given JSON object.
| data |
A JSON object representing the serialized geometry. |
| shapes |
An array of shapes. |
- Returns: A new instance.
Type Definitions
.Options
Represents the options type of the geometry's constructor.
|
curveSegments
number |
Number of points on the curves. Default is |
|
steps
number |
Number of points used for subdividing segments along the depth of the extruded spline. Default is |
|
depth
number |
Depth to extrude the shape. Default is |
|
bevelEnabled
boolean |
Whether to beveling to the shape or not. Default is |
|
bevelThickness
number |
How deep into the original shape the bevel goes. Default is |
|
bevelSize
number |
Distance from the shape outline that the bevel extends. Default is |
|
bevelOffset
number |
Distance from the shape outline that the bevel starts. Default is |
|
bevelSegments
number |
Number of bevel layers. Default is |
|
extrudePath
Curve |
A 3D spline path along which the shape should be extruded. Bevels not supported for path extrusion. Default is |
|
UVGenerator
Object |
An object that provides UV generator functions for custom UV generation. |