3dSynth

Docs / Node Sculptor

Open in the interactive docs reader

SDF · Box

Axis-aligned box SDF using Inigo Quilez's exact formula:

q = abs(p - center) - size/2
d = length(max(q, 0)) + min(max(qx, qy, qz), 0)

Negative inside, positive outside, zero on the surface.

Node

Interactive preview is available in the interactive reader.

Sockets

center (in)
Vector3. Optional override.
size (in)
Vector3. Full extent along x, y, z.
sdf (out)
SDF.

Parameters

Center
Box origin. Default: [0, 0, 0].
Size (xyz)
Full extent along each axis — the box spans [-size/2, +size/2]. Default: [10, 10, 10].

Tips