3dSynth

Docs / Node Sculptor

Open in the interactive docs reader

SDF · Torus

Torus SDF lying in the XY plane (axis along Z) with major radius R and minor radius r:

q = (length(p.xy) - R, p.z)
d = length(q) - r

Node

Interactive preview is available in the interactive reader.

Sockets

center (in)
Vector3. Optional origin override.
majorRadius (in)
Float. Distance from origin to tube centerline.
minorRadius (in)
Float. Tube thickness.
sdf (out)
SDF.

Parameters

Center
Torus origin. Default: [0, 0, 0].
Major R
Distance from origin to the middle of the tube. Default: 10.
Minor r
Tube radius. Default: 3.

Tips