Optionalradius: numberOptionaltube: numberOptionalradialSegments: numberOptionaltubularSegments: numberOptionalp: numberOptionalq: numberOptionalsideOrientation: sideOrientationEnumOptionalenableShadows: booleanOptionalradiusOverall radius of the knot, in scene units
OptionaltubeRadius of the tube, in scene units
OptionalradialNumber of segments along the length of the tube; more is smoother
OptionaltubularNumber of segments around the tube; more is rounder
OptionalpHow many times the tube winds around the axis of the ring; 2 with q 3 gives a trefoil
OptionalqHow many times the tube winds through the hole of the ring; 3 with p 2 gives a trefoil
OptionalsideWhich side of each face is drawn: the front, the back or both; single-sided meshes are invisible from behind
OptionalenableWhen true, the mesh casts and receives shadows from the lights that have them enabled
Feeds
babylon.meshBuilder.createTorusKnot: the size of a knotted tube, its segment counts and the two winding numbers that shape the knot.