solid nodes
7 node types in the solid category.
boolean#
aliases: csg bool difference union intersect
Robust mesh boolean (union / subtract / intersect) of closed solids. Each input’s overlapping pieces are unioned first; without B, the result is that union of A.
Either input may be a merge of pieces that overlap: each input is first made one solid, the union of its pieces (the inner wall of a hollow piece stays with it, so the hollow is kept), and the operation runs on those two solids, so subtracting a merge of cutters removes everything any of them covers. The result is a closed solid made of polygons: each input face that survives the cut comes out as one polygon (a face the cut leaves with a hole as a few polygons sharing flat edges), so a bevel or inset after the boolean sees the real edges, and edges shorter than "tolerance" are collapsed so no slivers are left. Inside-out input pieces (a mirror without a winding flip) are turned outward first, with a warning.
Inputs
| # | name | description |
|---|---|---|
| 0 | a | solid A: closed pieces, which may overlap (unioned first) |
| 1 | b | solid B (optional): closed pieces, which may overlap (unioned first, so a merge of cutters cuts as one); its faces become the cut faces when subtracting (optional) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
operation | enum | "subtract" | A ∪ B, A − B, or A ∩ B options: union subtract intersectaliases: op mode | |
output | enum | "polygons" | polygons = each surviving input face as one polygon (or a few around a hole); triangles = the kernel triangles as they come options: polygons triangles | |
tolerance | float | 0.00001 | 0.. | after the cut, collapse edges shorter than this and flatten slivers thinner than it, keeping the solid closed (0 = rounding only) aliases: simplify sliver |
Writes: prim groups from_a, from_b (cut faces come from B when subtracting); each face keeps the prim attributes of the input face it comes from (a cut face B’s material); float point/vertex attributes interpolated
Example
{
"nodes": {
"box": { "type": "box" },
"ball": {
"type": "sphere",
"params": { "type": "ico", "level": 3, "radius": 0.65 }
},
"cut": {
"type": "boolean",
"in": ["box", "ball"],
"params": { "operation": "subtract" }
}
},
"output": "cut"
}
Used in the example machined_bracket.
clip#
aliases: cut slice_plane trim
Cut geometry with a plane; keep one side or both. Works on any polygons; can cap closed solids.
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
origin | vec3 | [0,0,0] | point on the plane | |
normal | vec3 | [0,1,0] | plane normal; "above" = the side it points to aliases: dir direction | |
keep | enum | "below" | which side to keep (both = split, groups above/below) options: below above both | |
cap | bool | false | close the cut with faces (prim group "cap") |
Writes: prim groups above/below (keep=both), cap
Example
{
"type": "clip",
"params": {
"origin": [0, 0.2, 0],
"normal": [0, 1, 0],
"keep": "below",
"cap": true
}
}
convex_hull#
aliases: hull shrinkwrap
Convex hull of all points (watertight triangles).
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | points or geometry |
Parameters
None.
Example
{
"nodes": {
"pts": {
"type": "point_grid",
"params": {
"counts": [6, 4, 6],
"size": [2, 1, 2],
"jitter": 0.8,
"seed": 2
}
},
"hull": { "type": "convex_hull", "in": ["pts"] }
},
"output": "hull"
}
minkowski#
aliases: minkowski_sum dilate_solid
Minkowski sum of two solids (e.g. A ⊕ small sphere = rounded/dilated A). Slow for large non-convex inputs.
Inputs
| # | name | description |
|---|---|---|
| 0 | a | solid |
| 1 | b | brush solid (e.g. a small sphere centred at the origin) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
operation | enum | "sum" | sum grows A by B; difference erodes A by B options: sum difference |
Example
{
"nodes": {
"box": { "type": "box" },
"ball": {
"type": "sphere",
"params": { "type": "ico", "level": 1, "radius": 0.1 }
},
"rounded": { "type": "minkowski", "in": ["box", "ball"] }
},
"output": "rounded"
}
slice#
aliases: contour section cross_section
Contour a closed solid with parallel planes (closed polygons per level) — e.g. topographic lines, layers.
Inputs
| # | name | description |
|---|---|---|
| 0 | solid | closed mesh |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
count | int | 10 | 1..100000 | number of slices across the bounding box |
axis | enum | "y" | slicing axis options: y x z | |
margin | float | 0.001 | 0.. | keep slices this far inside the bbox ends |
Writes: prim float height, int slice
Example
{ "type": "slice", "params": { "count": 12, "axis": "y" } }
smooth_solid#
aliases: refine round smooth_out subdivide_solid
Smooth a closed mesh into curved surfaces and refine it (manifold smoothOut + refine); sharp edges above an angle stay crisp.
Inputs
| # | name | description |
|---|---|---|
| 0 | solid | closed mesh |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
refine | int | 4 | 1..32 | split every edge into this many segments |
sharp_angle | float | 60 | 0..180 | edges with a dihedral angle sharper than this stay sharp (180 = smooth everything) |
smoothness | float | 0 | 0..1 | smoothness kept on sharp edges (0 = crisp) |
Example
{ "type": "smooth_solid", "params": { "refine": 4, "sharp_angle": 80 } }
voronoi_fracture#
aliases: fracture shatter voronoi
Shatter a closed solid into convex Voronoi pieces (sites from input 2 or scattered inside). Pieces get name/class; inner faces group "inside".
Inputs
| # | name | description |
|---|---|---|
| 0 | solid | closed mesh to fracture |
| 1 | sites | optional fracture points (optional) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
count | int | 12 | 1..10000 | number of pieces when no site points are given |
seed | float | 0 | random seed | |
gap | float | 0 | 0.. | shrink each piece toward its centre by this distance (visual separation) |
neighbors | int | 24 | 4..1024 | nearest sites that cut each cell first; farther sites that can still reach the cell cut it too, so cells are exact and pieces never overlap |
Writes: prim name ("piece0"...), class (int), group inside; point/prim attributes from the source
Example
{
"type": "voronoi_fracture",
"params": { "count": 20, "gap": 0.02, "seed": 4 }
}
Used in the example fracture_settle.