Cube
A box, and the shape most models are mostly made of.
box, block, brick, cuboid, rectangular prism, crate- Category
- Primitives
- Outputs
- mesh
- Runs live in
- no target yet
Three sizes and three segment counts. The sizes are the whole box, not half of it, and it is centred on its own origin, so a cube of height 2 reaches from -1 to 1.
The segment counts add divisions through the box without changing its shape. They cost nothing until something needs them, and then they are the difference between a bar that bends and a bar that just tilts: anything that moves points along a direction needs points in the middle to move. Leave them at 1 unless something downstream is going to bend, twist or displace the box.
The three sizes are also outputs. Wire one into another part instead of typing the same number twice, and that part follows when you change it.
Inputs
| Socket | Type | Wiring |
|---|---|---|
| size | vector | one wire covers sizeX, sizeY, sizeZ |
These settings are also output sockets, so another part can read the number instead of repeating it: sizeX, sizeY, sizeZ.
Parameters
| Name | Type | Default | Available when | What it does |
|---|---|---|---|---|
| X | number | 1 | always | |
| Y | number | 1 | always | |
| Z | number | 1 | always | |
| Segments X | number | 1 | always | |
| Segments Y | number | 1 | always | |
| Segments Z | number | 1 | always |
Watch out
If a bend or a twist tilts the box instead of curving it, the segment counts are still at 1. There are no points in the middle for the deformation to move.
Built with this node
- Combine and cutHow-to
- Make shapesHow-to
- My bend just tilted itFix
- My shape is the wrong sizeFix
- Bend a Baruses it
- Break It Apartuses it
- Round the Edgesuses it
- demo-forgedemoThe whole smithy is one cube, placed thirty-seven times at different sizes.
11 more teaching graphs use it without being about it.