Pass:torus

Draws a torus.

Pass:torus(transform, tsegments, psegments)

Arguments

NameTypeDefaultDescription
transformMat4 The transform of the torus. Can also be provided as position, scale, and rotation using a mix of Vectors or numbers. When using numbers for the scale, 2 should be provided: one for the radius and one for the thickness. When using a matrix or a vector for the scale, the X and Y components are the radius and the Z component is the thickness.
tsegmentsnumber64 The number of toroidal (circular) segments to render.
psegmentsnumber32 The number of poloidal (tubular) segments to render.

Returns

Nothing

Notes

The local origin is in the center of the torus, and the torus forms a circle around the local Z axis.

See also