ViewVertical

ViewVertical is an option for Graphics3D, SurfaceGraphics and funtions that return Graphics3D or SurfaceGraphics such graphics. The ViewVertical usage message is shown below.

? ViewVertical

ViewVertical is an option for Graphics3D and SurfaceGraphics which specifies what direction in scaled coordinates should be vertical in the final image. More…

The default ViewVertical setting has the z axis in the vertical direction.  This is clear in the next graphic.

RowBox[{RowBox[{Show, [, RowBox[{gr, ,, ViewVertical-> {0, 0, 1}, ,, RowBox[{ViewPoint, ->, RowBox[{{, RowBox[{0.85, ,, -6, ,, 0}], }}]}]}], ]}], ;}]

In the next cell we have a ViewVertical setting that has the effect of rotating the bounding box counter-clockwise.  Here we have the setting ViewVertical→{0.1,0,1} and we show an arrow in the direction of the vector {0.1,0,1}.  You will notice the bounding box is rotated to make the arrow pointing straight up.

RowBox[{RowBox[{Show, [, RowBox[{gr, ,, RowBox[{Graphics3D, [, RowBox[{{, RowBox[{RowBox[{Thic ... , RowBox[{ViewPoint, ->, RowBox[{{, RowBox[{RowBox[{-, 0.85}], ,, -6, ,, 0}], }}]}]}], ]}], ;}]


Created by Mathematica  (May 16, 2004)

Back to Ted’s Tricks index page