[page:BufferGeometry] →

[name]

This is the [page:BufferGeometry] port of [page: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

[name]([page:Float radius], [page:Float tube], [page:Integer tubularSegments], [page:Integer radialSegments], [page:Integer p], [page:Integer q])

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.
[sourceHint]