HomeMathematicsTorus Knots: Writhe & Crossing-Sign Explorer

Torus Knots: Writhe & Crossing-Sign Explorer

Interactive torus-knot simulator that computes crossing number and writhe live from the actual 3D curve as you rotate it, showing why writhe is projection-dependent while topological invariants like the Alexander polynomial are not.

Mathematics3DAdvanced60 FPS📱 Mobile-adapted⇄ 2D version
knot-theory-invariants ↗ Open standalone

This simulator renders a real torus knot T(p, q) as a 3D tube and computes its diagram invariants live, straight from the geometry, instead of looking them up in a table. Every frame the sampled curve is projected along the current camera direction, every pair of strands is tested for an actual 2D crossing, and each crossing is signed by comparing camera-space depth (which strand is "over") against the handedness of the two tangent directions — exactly the construction behind the Gauss linking integral and the writhe of a knot diagram. Rotating the same, unmoving curve changes the crossing count and the writhe, making concrete the fact that writhe is a property of a diagram's projection, not of the knot itself — unlike the crossing number's coprime-torus-knot formula min(p(q−1), q(p−1)) or the Alexander polynomial, which stay fixed under any Reidemeister-equivalent redrawing.

⚙ Under the hood

Renders a real torus knot T(p,q) and computes its crossing count and writhe live from the actual projected 3D curve, showing why writhe changes with viewing angle while true topological invariants like the crossing-number formula do not.

knot theorytopologytorus knotwrithecrossing numberinvariants

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)