[page:Geometry] →
[name]
Creates a torus knot, the particular shape of which is defined by a pair of coprime integers, p and q. If p and q are not coprime, the result will be a torus link.
Example
var geometry = new THREE.TorusKnotGeometry( 10, 3, 100, 16 );
var material = new THREE.MeshBasicMaterial( { color: 0xffff00 } );
var torusKnot = new THREE.Mesh( geometry, material );
scene.add( torusKnot );
Constructor
[name]([page:Float radius], [page:Float tube], [page:Integer radialSegments], [page:Integer tubularSegments], [page:Integer p], [page:Integer q], [page:Float heightScale])
radius — Default is 100.
tube — Default is 40.
radialSegments — Default is 64.
tubularSegments — Default is 8.
p — Default is 2.
q — Default is 3.
heightScale — Default is 1.
Properties
Each of the contructor parameters is accessible as a property of the same name. Any modification of these properties after instantiation does not change the geometry.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]