Constructor
new TorusKnotGeometry( radius : number, tube : number, tubularSegments : number, radialSegments : number, p : number, q : number )
Constructs a new torus knot geometry.
| radius |
Radius of the torus knot. Default is |
| tube |
Radius of the tube. Default is |
| tubularSegments |
The number of tubular segments. Default is |
| radialSegments |
The number of radial segments. Default is |
| p |
This value determines, how many times the geometry winds around its axis of rotational symmetry. Default is |
| q |
This value determines, how many times the geometry winds around a circle in the interior of the torus. 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 ) : TorusKnotGeometry
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.