DOCUMENTATION CENTER SEARCH
Mathematica
>
Graphics Objects
>
Built-in
Mathematica
Symbol
Three-Dimensional Graphics Primitives
Tutorials »
|
Polygon
Rectangle
GraphicsComplex
Sphere
See Also »
|
Graphics Objects
Symbolic Graphics Language
More About »
Cuboid
Cuboid
[{
x
min
,
y
min
,
z
min
}]
is a three-dimensional graphics primitive that represents a unit cuboid, oriented parallel to the axes.
Cuboid
[{
x
min
,
y
min
,
z
min
}, {
x
max
,
y
max
,
z
max
}]
specifies a cuboid by giving the coordinates of opposite corners.
MORE INFORMATION
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
.
»
Cuboid
[]
is equivalent to
Cuboid
[{0, 0, 0}]
.
EXAMPLES
CLOSE ALL
Basic Examples
(4)
A unit cuboid:
In[1]:=
Out[1]=
Two unit cuboids:
In[1]:=
Out[1]=
Cuboids with different sizes:
In[1]:=
Out[1]=
Differently styled cuboids:
In[1]:=
Out[1]=
Scope
(9)
Applications
(4)
Properties & Relations
(1)
Neat Examples
(2)
SEE ALSO
Polygon
Rectangle
GraphicsComplex
Sphere
TUTORIALS
Three-Dimensional Graphics Primitives
MORE ABOUT
Graphics Objects
Symbolic Graphics Language
RELATED LINKS
NKS|Online
(
A New Kind of Science
)
New in 2 | Last modified in 6
© 2008 Wolfram Research, Inc.