Function CreateTorusKnot
-
CreateTorusKnot(
name: string,
options?: {
backUVs?: Vector4;
frontUVs?: Vector4;
p?: number;
q?: number;
radialSegments?: number;
radius?: number;
sideOrientation?: number;
tube?: number;
tubularSegments?: number;
updatable?: boolean;
},
scene?: Scene,
): MeshParameters
- name: string
defines the name of the mesh
- options: {
backUVs?: Vector4;
frontUVs?: Vector4;
p?: number;
q?: number;
radialSegments?: number;
radius?: number;
sideOrientation?: number;
tube?: number;
tubularSegments?: number;
updatable?: boolean;
} = {}defines the options used to create the mesh
Optionalscene: Scenedefines the hosting scene
Returns Mesh
the torus knot mesh
- name: string
Creates a torus knot mesh
radiussets the global radius size (float) of the torus knot (default 2)radialSegmentssets the number of sides on each tube segments (positive integer, default 32)tubularSegmentssets the number of tubes to decompose the knot into (positive integer, default 32)pandqare the number of windings on each axis (positive integers, default 2 and 3)frontUVsandbackUVs(Vector4). Detail here : https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientationupdatable(default false) if its internal geometry is supposed to change once created.