Volume node

sdf_shapes

Procedural SDF modelling in code. Ideal for an AI: describe the shape as math, get a watertight mesh.

Inputs

None: this node generates geometry from its parameters.

Parameters 6

codecode

numpy expression code assigning 'surface' using sdf_sphere(c,r), sdf_box(c,size,round), sdf_torus(c,R,r), sdf_capsule(a,b,r), sdf_cylinder(c,r,h), smin/smax(a,b,k), noise (tessera.noise), X,Y,Z grids

surface = smin(sdf_sphere((0,1,0), 0.7), sdf_box((0,0.35,0), (1.6,0.3,1.6), 0.05), 0.25)
sizevector 3
Default [3, 3, 3]

No description.

centervector 3
Default [0, 1, 0]

No description.

voxel_sizefloat
Default 0.03Range 0.0001 to …

No description.

meshtoggle
Default on

Output the meshed surface (else the SDF volume)

smoothint
Default 1

No description.

Use it

Add it from the node menu (right-click empty graph space or Tab, then type sdf_shapes), ask the AI for it by name, or add it with a graph op from the API or MCP:

{"op":"add","type":"sdf_shapes","name":"my_sdf_shapes","params":{},"inputs":[]}

Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.