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)

Properties

See the base BufferGeometry class for common properties.

.parameters

An object with a property for each of the constructor parameters. Any modification after instantiation does not change the geometry.

Methods

See the base BufferGeometry class for common methods.

Source

src/geometries/TorusKnotGeometry.js