Constructor
new TorusGeometry( radius : number, tube : number, radialSegments : number, tubularSegments : number, arc : number )
Constructs a new torus geometry.
radius |
Radius of the torus, from the center of the torus to the center of the tube. |
tube |
Radius of the tube. Must be smaller than |
radialSegments |
The number of radial segments. |
tubularSegments |
The number of tubular segments. |
arc |
Central angle in radians. |
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 ) : TorusGeometry
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.