Constructor
new LatheGeometry( points : Array.<(Vector2|Vector3)>, segments : number, phiStart : number, phiLength : number )
Constructs a new lathe geometry.
| points |
An array of points in 2D space. The x-coordinate of each point must be greater than zero. |
| segments |
The number of circumference segments to generate. Default is |
| phiStart |
The starting angle in radians. Default is |
| phiLength |
The radian (0 to 2PI) range of the lathed section 2PI is a closed lathe, less than 2PI is a portion. 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 ) : LatheGeometry
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.