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

ViewCenter

ViewCenter
is an option for Graphics3D and related functions which gives the scaled coordinates of the point which should appear at the center of the final image.
  • With the default setting ViewCenter->Automatic, the whole bounding box is centered in the final image.
  • ViewCenter->Automatic is equivalent to ViewCenter, which places the center of the three-dimensional bounding box at the center of the final image.
  • The setting for ViewCenter is given in scaled coordinates, which run from 0 to 1 across each dimension of the bounding box.
  • ViewCenter makes the 3D point with scaled coordinates appear at scaled coordinate position in the final 2D image.
  • In a notebook front end, rotating a 3D object by dragging the mouse does not change the setting for ViewCenter. Panning changes the second element in the ViewCenter list.
Place the center of the objects at the center of the final image:
Place the top-right corner of the objects at the center of the final image:
Use the ViewCenter to specify that the 3D point vc is mapped to the 2D point vp:
Place the center of the objects at the center of the final image:
In[1]:=
Click for copyable input
Out[1]=
 
Place the top-right corner of the objects at the center of the final image:
In[1]:=
Click for copyable input
Out[1]=
 
Use the ViewCenter to specify that the 3D point vc is mapped to the 2D point vp:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
New in 2 | Last modified in 6