docs / features / Primitive Cube
Primitive Cube
Status: Implemented

Primitive Cube builds an axis-aligned rectangular prism with one corner anchored at the origin.
Walkthrough

Inputs
id(string, defaultnull) – names the solid and its faces.sizeX,sizeY,sizeZ(number, default10each) – signed side lengths along world X/Y/Z. A negative size extends from the origin in the negative direction, each axis independently. Every magnitude must be greater than zero.transform(transform, default position[0, 0, 0], rotation[0, 0, 0], scale[1, 1, 1]) – placement baked into the cube before the boolean.boolean(boolean_operation, default operationNONEwith no targets andmergeCoplanarFaces: true) – optional union / subtract / intersect after creation.
Behaviour
- Faces are named
{id}_NZ,{id}_PZ,{id}_NY,{id}_PY,{id}_NX, and{id}_PX.