User Manual Developer Reference
Extras
Extras / Core
Extras / Curves
Extras / Objects Examples Misc
BufferGeometry →
TorusKnotBufferGeometry
This is the BufferGeometry port of TorusKnotGeometry .
Example
var geometry = new v3d.TorusKnotBufferGeometry(10, 3, 100, 16);
var material = new v3d.MeshBasicMaterial({ color: 0xffff00 });
var torusKnot = new v3d.Mesh(geometry, material);
scene.add(torusKnot);
Constructor
TorusKnotBufferGeometry(radius : Float , tube : Float , tubularSegments : Integer , radialSegments : Integer , p : Integer , q : Integer )
radius - Radius of the torus. Default is 1.
tube — Radius of the tube. Default is 0.4.
tubularSegments — Default is 64.
radialSegments — Default is 8.
p — This value determines, how many times the geometry winds around its axis of rotational symmetry. Default is 2.
q — This value determines, how many times the geometry winds around a circle in the interior of the torus. Default is 3.
Properties
.parameters
An object with a property for each of the constructor parameters. Any modification after instantiation does not change the geometry.
Source For more info on how to obtain the source code of this module see this page .