Constructor
new TubeGeometry( path : Curve, tubularSegments : number, radius : number, radialSegments : number, closed : boolean )
Constructs a new tube geometry.
path |
A 3D curve defining the path of the tube. |
tubularSegments |
The number of segments that make up the tube. |
radius |
The radius of the tube. |
radialSegments |
The number of segments that make up the cross-section. |
closed |
Whether the tube is closed or not. |
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 ) : TubeGeometry
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.