Three-dimensional graphics are created using the function Graphics3D
and a list of 3D primitives. The following primitives are supported so far:
Polygon
[{{$x_1$, $y_1$, $z_1$}, {$x_2$, $y_2$, $z_3$}, ...}]Line
[{{$x_1$, $y_1$, $z_1$}, {$x_2$, $y_2$, $z_3$}, ...}]Point
[{$x_1$, $y_1$, $z_1$}]Graphics3D[Polygon[{{0,0,0}, {0,1,1}, {1,0,0}}]]
Colors can also be added to three-dimensional primitives.
Graphics3D[{Orange, Polygon[{{0,0,0}, {1,1,1}, {1,0,0}}]}, Axes->True]
Graphics3D
produces a Graphics3DBox
:
Head[ToBoxes[Graphics3D[{Polygon[]}]]]