DocsNodesPrimitives

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

SocketTypeWiring
sizevectorone 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

NameTypeDefaultAvailable whenWhat it does
Xnumber1always
Ynumber1always
Znumber1always
Segments Xnumber1always
Segments Ynumber1always
Segments Znumber1always

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

11 more teaching graphs use it without being about it.

See also

  • shapeFor an outline that is not a rectangle: arches, keyholes, shields, polygons.
  • bevelRounds the hard edges off, which is most of what makes a box stop reading as a placeholder.

Open the editor and try it