3-D Visualization Previous page   Next Page

Revolving Around the Scene

You can use the view command to revolve the viewpoint about the z-axis by varying the azimuth, and about the azimuth by varying the elevation. This has the effect of moving the camera around the scene along the surface of a sphere whose radius is the length of the viewing axis. You could create the same effect by changing the CameraPosition, but doing so requires you to perform calculations that MATLAB performs for you when you call view.

For example, the function orbit moves the camera around the scene.


Previous page  Making the Scene Larger or Smaller Rotation Without Resizing of Graphics Objects Next page

© 1994-2005 The MathWorks, Inc.