git.lucas.co / cce-designer
graphic design tool
git clone https://git.lucas.co/cce-designer.git

nodes/volume.json (1.3K)

 1 {
 2  "name": "Volume",
 3  "type": "volume",
 4  "inputs": 1,
 5  "outputs": 1,
 6  "params": [
 7   { "name": "input", "label": "Input", "type": "node", "default": "", "description": "The node whose closed surface is turned into a distance field and rebuilt as an offset surface or a shell." },
 8   { "name": "mode", "label": "Mode", "type": "choice:Offset,Shell", "default": "Offset", "description": "Offset moves the whole surface out or in. Shell keeps only a wall between the offset surface and a copy moved inward by Thickness." },
 9   { "name": "voxel_size", "label": "Voxel Size", "type": "slider", "default": "0.05", "min": 0.005, "max": 1.0, "step": 0.005, "description": "Grid spacing of the distance field in world units. Smaller keeps finer detail but costs more; the grid is capped at 256 samples per axis." },
10   { "name": "offset", "label": "Offset", "type": "slider", "default": "0.00", "min": -1.0, "max": 1.0, "step": 0.005, "description": "How far, in world units, the surface is moved: positive grows it outward, negative shrinks it inward. 0 rebuilds it in place." },
11   { "name": "thickness", "label": "Thickness", "type": "slider", "default": "0.05", "min": 0.001, "max": 1.0, "step": 0.005, "show_when": "mode == Shell", "description": "Wall thickness of the shell in world units, measured inward from the offset surface." }
12  ]
13 }