This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Cuboid

Cuboid
is a three-dimensional graphics primitive that represents a unit cube, oriented parallel to the axes.
Cuboid
specifies a cuboid by giving the coordinates of opposite corners.
  • Each face of the cuboid (rectangular parallelepiped) is effectively a Polygon object, with its front face on the outside.
  • You can specify how the faces and edges of the cuboid should be rendered using the same graphics directives as for polygons. »
  • Cuboids can be specified as transparent using Opacity directives. »
  • The coordinates of the corners of the cuboid can be given using Scaled. »
A unit cuboid:
Two unit cuboids:
Cuboids with different sizes:
Differently styled cuboids:
A unit cuboid:
In[1]:=
Click for copyable input
Out[1]=
 
Two unit cuboids:
In[1]:=
Click for copyable input
Out[1]=
 
Cuboids with different sizes:
In[1]:=
Click for copyable input
Out[1]=
 
Differently styled cuboids:
In[1]:=
Click for copyable input
Out[1]=
A unit cube:
A cuboid parallel to each axis:
Short form for a unit cube cornered at the origin:
Use Scaled coordinates:
Color directives specify the face colors of cuboids:
FaceForm and EdgeForm can be used to specify the styles of the faces and edges:
Different properties can be specified for the front and back of faces using FaceForm:
Cuboid with different specular exponents:
White cuboid that glows red:
Opacity specifies the face opacity:
A simple 3D bar chart:
Show a sequence of steps in the evolution of a 3D cellular automaton:
Use as a simple way to visualize volumes:
Hyperboloids:
Use Rotate to get all possible cuboids:
Random cuboid collections:
A pyramid with random color cubes:
New in 2 | Last modified in 6