Cube

Cube[]

represents a regular cube centered at the origin with unit edge length.

Cube[l]

represents a cube with edge length l.

Cube[{θ,ϕ},]

represents a cube rotated by an angle θ with respect to the z axis and angle ϕ with respect to the y axis.

Cube[{x,y,z},]

represents a cube centered at {x,y,z}.

Details and Options

Examples

open allclose all

Basic Examples  (3)

A cube:

A styled cube:

Volume and centroid:

Scope  (7)

Graphics  (4)

Specification  (1)

A single cube:

Styling  (3)

FaceForm and EdgeForm can be used to specify the styles of the faces and edges:

Apply a Texture to the faces:

Assign VertexColors to vertices:

Regions  (3)

Embedding dimension is the dimension of the space in which the cube lives:

Geometric dimension is the dimension of the shape itself:

Centroid:

A cube is bounded:

Find its range:

Introduced in 2019
 (12.0)