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. Default is |
| tube |
Radius of the tube. Must be smaller than Default is |
| radialSegments |
The number of radial segments. Default is |
| tubularSegments |
The number of tubular segments. Default is |
| arc |
Central angle in radians. 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 ) : 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.