knot

fun knot(radius: Float, size: Float, radSeg: Int, sides: Int): Mesh

Generates a knot mesh.

Return

The generated mesh.

Parameters

radius

The radius of the knot.

size

The size of the knot tube.

radSeg

The number of segments around the main radius. Increasing the number of segments increases the number of subdivisions around the main radius, which improves the knot's roundness.

sides

The number of sides of the knot tube. Increasing the number of sides increases the number of subdivisions around the tube, which improves the knot's roundness.