Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit098ece8e9e

README.md

shape.torus

A torus in the XY plane around Z.

In a scene: TorusGeometry(radius, tube, radialSegments, tubularSegments, arc).

InputDefaultMeaning
radius1The radius of the ring.
tube0.4The radius of the tube.
radialSegments12Segments around the tube.
tubularSegments48Segments around the ring.
arc2 piHow much of the ring, in radians.

The node answers geometry: a mesh with positions, normals and uvs. Its body is a call into the module in its own folder, so a graph of many parts cooks without a device dispatch per shape.

TorusGeometry(0.255, 0.105, 14, 32)