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


Updated In 6 Graphic
Graphics3D[primitives, options]
represents a three-dimensional graphical image.
  • The following graphics primitives can be used:
GraphicsComplex[pts,prims]complex of graphics objects
GraphicsGroup[{g1,g2,...}]objects treated as a group
Inset[obj,...]inset object
  • The following graphics directives can be used:
AbsoluteDashing[{w1,...}]absolute line dashing specification
AbsolutePointSize[d]absolute point size specification
AbsoluteThickness[w]absolute line thickness specification
CMYKColor[c,m,y,k]color specification
Dashing[{w1,...}]line dashing specification
Directive[g1,g2,...]composite graphics directive
EdgeForm[spec]polygon edge specification
FaceForm[spec]polygon face specification
Glow[c]glow color specification
GrayLevel[i]gray-level specification
Hue[h]hue specification
Opacity[a]opacity specification
PointSize[d]point size specification
RGBColor[r,g,b]color specification
Specularity[s]surface specularity specification
Thickness[w]line thickness specification
  • The following wrappers can be used at any level:
Annotation[obj,label]give an annotation
Button[obj,action]make obj act as a button
Dynamic[obj]use the dynamically updated current value
EventHandler[obj,...]attach an event handler
Hyperlink[obj,URI]make obj a hyperlink
Mouseover[obj,over]specify a mouseover form
PopupWindow[obj,cont]attach a popup window
StatusArea[obj,label]specify a label to appear in the status area
Style[obj,opts]specify a style
Tooltip[obj,label]attach a tooltip
  • The following options can be given:
AlignmentPointCenterthe default point in the graphic to align with
AspectRatioAutomaticratio of height to width
AxesFalsewhether to draw axes
AxesEdgeAutomaticon which edges to put axes
AxesLabelNoneaxes labels
AxesStyle{}graphics directives to specify the style for axes
BackgroundNonebackground color for the plot
BaselinePositionAutomatichow to align with a surrounding text baseline
BaseStyle{}base style specifications for the graphic
BoxedTruewhether to draw the bounding box
BoxRatiosAutomaticbounding 3D box ratios
BoxStyleAutomaticstyle specifications for the box
ContentSelectableAutomaticwhether to allow contents to be selected
ControllerLinkingAutomaticwhen to link to external rotation controllers
ControllerMethodAutomatichow external controllers should operate
ControllerPathAutomaticwhat external controllers to try to use
DisplayFunction$DisplayFunctionfunction for generating output
Epilog{}2D graphics primitives to be rendered after the main plot
FaceGridsNonegrid lines to draw on the bounding box
FaceGridsStyle{}style specifications for face grids
FormatTypeTraditionalFormdefault format type for text
ImageMargins0.the margins to leave around the graphic
ImagePaddingAllwhat extra padding to allow for labels, etc.
ImageSizeAutomaticabsolute size at which to render the graphic
LabelStyle{}style specifications for labels
LightingAutomaticsimulated light sources to use
MethodAutomaticdetails of 3D graphics methods to use
PlotLabelNonea label for the plot
PlotRangeAllrange of values to include
PlotRangePaddingAutomatichow much to pad the range of values
PlotRegionAutomaticfinal display region to be filled
PreserveImageOptionsAutomaticwhether to preserve image options when displaying new versions of the same graphic
Prolog{}2D graphics primitives to be rendered before the main plot
RotationAction"Fit"how to render after interactive rotation
SphericalRegionFalsewhether to make the circumscribing sphere fit in final display area
TicksAutomaticspecification for ticks
TicksStyle{}style specification for ticks
ViewAngleAllangle of the field of view
ViewCenter{1/2,1/2,1/2}point to display at the center
ViewMatrixAutomaticexplicit transformation matrix
ViewPoint{1.3,-2.4,2.}viewing position
ViewRangeAllrange of viewing distances to include
ViewVectorAutomaticposition and direction of a simulated camera
ViewVertical{0,0,1}direction to make vertical
  • Nested lists of graphics constructs can be given. Directive specifications such as GrayLevel normally remain in effect only until the end of the list which contains them.
  • A list containing only graphics directives is treated as if its elements were directly inserted into an enclosing list.
  • Style[obj, opts] can be used to apply the options or directives opts to obj.
  • Dragging with the mouse rotates a 3D graphic.
  • Directives such as RGBColor specify surface colors for objects that follow. Final colors are determined from simulated illumination, including Glow and Specularity components.
  • By default, four light sources of different colors are used, arranged at particular fixed locations outside the bounding box.
  • By default, ViewAngle is set so that if possible the projection of the whole 3D object just fills the 2D viewing area.
  • The settings for BaseStyle are appended to the default style typically given by the "Graphics3D" style in the current stylesheet. The settings for BoxStyle, LabelStyle, etc. are appended to the default styles given for "Graphics3DBox", "Graphics3DLabel", etc.
  • Settings that can be given through the Method option include "SpherePoints" and "CylinderPoints".
Use lines, polygons, cylinders, spheres, etc. to build up a 3D graphics scene:
Click for copyable input
Use plot functions to automatically create Graphics3D from different types of data:
Click for copyable input
Click for copyable input
Use built-in polyhedron data:
Click for copyable input
New in 1 | Last modified in 6