Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

ViewPoint

ViewPoint
is an option for Graphics3D and related functions which gives the point in space from which threedimensional objects are to be viewed.

DetailsDetails

  • ViewPoint->{x,y,z} gives the position of the view point relative to the center of the threedimensional box that contains the objects.
  • The view point is given in a special scaled coordinate system in which the longest side of the bounding box has length 1. The center of the bounding box is taken to have coordinates {0,0,0}.
  • Common settings for ViewPoint are:
  • {1.3,-2.4,2}default setting
    {0,-2,0}directly in front
    {0,-2,2}in front and up
    {0,-2,-2}in front and down
    {-2,-2,0}lefthand corner
    {2,-2,0}righthand corner
    {0,0,2}directly above
  • The following symbolic forms can also be used: »
  • Aboveabove, along the positive z direction
    Belowbelow, along the negative z direction
    Frontin front, along the negative y direction
    Backat back, along the positive y direction
    Leftleft, along the negative x direction
    Rightright, along the positive x direction
    {Left,Top}, etc.corners
  • Choosing a ViewPoint farther away from the object reduces the distortion associated with perspective.
  • Infinite coordinates can be used to specify orthographic views: »
  • {0,0,Infinity}view from above (plan view)
    {0,0,-Infinity}view from below
    {0,-Infinity,0}view from the front (front elevation)
    {0,Infinity,0}view from the back
    {-Infinity,0,0}view from the left
    {Infinity,0,0}view from the right
  • The coordinates of the corners of the bounding box in the special coordinate system used for ViewPoint are determined by the setting for the BoxRatios option.
  • In a notebook front end, dragging with the mouse rotates a 3D object, by changing the azimuthal components of ViewPoint, as well as the setting for ViewVertical.
  • Dragging with the mouse while pressing Ctrl, Alt, or Option zooms in or out, changing the value of ViewAngle, but keeping ViewPoint fixed.
  • Explicit settings for ViewVector or ViewMatrix override settings for ViewPoint.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Specify the view point using special scaled coordinates:

In[1]:=
Click for copyable input
Out[1]=

Use symbolic view points:

In[1]:=
Click for copyable input
Out[1]=

Specify orthographic views:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 1988
(1.0)
| Updated in 2008
(7.0)