Documentation / Node reference / geo nodes

geo/SDFTorus

Creates an SDF torus.

Sdf Primitives

Creates a torus as SDF geometry, its ring lying in the XZ plane. Opening it sweeps an arc instead of a whole ring, centered on +Z, so the gap faces -Z. Wire it to the geo/Output node to see it raymarched, or compose it with other SDF objects through geo/SDFBoolean, geo/SDFRepeat and geo/Transform. Dragging the params never recompiles the preview shader, though opening or closing the ring does. For fields beyond the wrapper primitives, use geo/SDFBuilder and the code/SDF* library.

Parameters

Name Type What it does
t Vector3 Torus center.
R Float Ring radius: from the center to the middle of the tube.
r Float Tube radius.
open Bool Sweep an arc instead of a whole ring. A whole ring is the cheaper field, so leave this off unless the arc is wanted.
angle Float Swept angle of the arc, in degrees, read only when the ring is open. The arc is centered on +Z, so the gap faces -Z.

See also

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.