The math
A (p, q) torus knot winds p times around the axis while passing q times through the hole: (2, 3) is the trefoil, (2, 5) the cinquefoil. The figure-eight knot uses a different closed curve with four crossings. A helix rises by the pitch for every turn. The tube is built by sweeping a circle along the curve with rotation-minimising frames, so it never twists or pinches; closed curves join seamlessly. See Procedural modeling.
Printing tips
- Knots need supports: use tree/organic supports, or cut the model in half along Z in your slicer and glue.
- Keep the tube at least 3 mm thick for strength.
- Printed springs in PETG or TPU flex a little; PLA springs are mostly decorative.