Documentation / Node reference / geo nodes
geo/VoxelBox
Creates a box made of voxels.
Voxel
Fills a grid of voxels with a box. A voxel is filled when its centre is inside the box, so a size that is not a whole number of voxels rounds to the voxels it covers rather than growing by one.
The box comes out white. To colour it, or make it rough, metallic or glowing, put a geo/MaterialAttributes after it: on a voxel object, OBJECT mode sets the whole object's material.
`surface offset` grows or shrinks the box by a distance before it is filled: negative erodes it, positive dilates it, and a dilated box rounds its edges and corners the way an offset surface does.
Parameters
| Name | Type | What it does |
|---|---|---|
| voxelSize | Float | Edge of one voxel, in world units. This is the resolution: no edge is finer than one voxel. |
| size | Vector3 | Size of the box on each axis, in world units. |
| center | Vector3 | Centre of the box. |
| surfaceOffset | Float | Grow or shrink the box by this distance before it is filled, in world units. Negative erodes, positive dilates and rounds the edges. |
See also
- geo/VoxelSphere
- geo/VoxelCreate
- geo/MaterialAttributes
- geo/VoxelTriangulate
This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.