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
codecodenumpy 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 3No description.
centervector 3No description.
voxel_sizefloatNo description.
meshtoggleOutput the meshed surface (else the SDF volume)
smoothintNo 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.