Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit098ece8e9e

README.md

shape.torusKnot

A (p, q) torus knot: a tube swept along a knot that winds p times around its axis and q times through the hole.

In a scene: TorusKnotGeometry(radius, tube, tubularSegments, radialSegments, p, q).

InputDefaultMeaning
radius1The radius of the knot's overall torus.
tube0.3The radius of the tube.
tubularSegments64Segments along the knot.
radialSegments8Segments around the tube.
p2How many times it winds around its axis.
q3How many times it winds through the hole.

The node answers geometry: a mesh with positions, normals and uvs. Its body is a call into the module in its own folder, so a graph of many parts cooks without a device dispatch per shape.

TorusKnotGeometry(0.45, 0.14, 96, 10, 2, 3)