Log inGet started
Package

shape.nodebox

Newest version

This package holds more than this page lists. See all of its files in its world.

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)