
What this component contains
ATTRIBUTION.mdLICENSEREADME.mdcomponent.jsongraphcheck.pymeshcheck.pypreview.pngtest_package.pytest_torus_knot.pytorus_knot.pyverification/native.json
How it works
- Operator
- baltor.torus_knot
- Parameters
- p, q, major_radius, minor_radius, tube_radius, samples, sides
- Result
- One smooth-shaded closed mesh named Torus Knot, genus one.
- Blender
- 4.2 or later
- Axes
- Blender Z up, -Y forward
- Units
- metres
Recorded checks
blender 5.2.1 LTS (hash 9e2066aef7ef built 2026-08-25 02:12:34)
addon_install_and_enableoperator_runs_with_defaultsblender_data_matches_coreaddon_disable_unregistersscript_mode_runsclean_reopen_addon_fileclean_reopen_script_filegltf_separate_exportengine_output_clean
Limits to consider
Coprime p and q only, since other pairs give links of several loops. The tube can intersect itself when the tube radius is large compared with the gaps between strands; nothing checks or prevents this. Parallel transport is discrete, so very few samples give a visibly faceted tube. Verified in Blender 5.2.1; written for the 4.2 API.