Builtin Library
- ..
- .metadata38 B
- README.md852 B
- init.luau1.1 KB
- torusKnot.module
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).
| Input | Default | Meaning |
|---|---|---|
radius | 1 | The radius of the knot's overall torus. |
tube | 0.3 | The radius of the tube. |
tubularSegments | 64 | Segments along the knot. |
radialSegments | 8 | Segments around the tube. |
p | 2 | How many times it winds around its axis. |
q | 3 | How 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)