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. Default is |
| tubularSegments |
The number of segments that make up the tube. Default is |
| radius |
The radius of the tube. Default is |
| radialSegments |
The number of segments that make up the cross-section. Default is |
| closed |
Whether the tube is closed or not. Default is |
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.