[vtkusers] rotating a volume around its center
Jesse Corrington
corrington_j at hotmail.com
Wed Aug 31 20:02:10 EDT 2005
I have created a volume, and now i want to rotate it 360 degrees around 1
axis and save an image at each position. When i try do volume.rotateX the
volume does not rotate around its center, so it eventually ends up off the
screen. How can i fix this. Also, here is how i set the initial camera
position, incase that matters. Also, when i just interact with the volume
and rotate it with the mouse, it does rotate around its center.
// set the initial view
vtkCamera aCamera = new vtkCamera();
aCamera.SetViewUp (0, 0, -1);
aCamera.SetPosition (0, 1, 0);
aCamera.SetFocalPoint (0, 0, 0);
aCamera.ComputeViewPlaneNormal();
thanks for the help
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
More information about the vtkusers
mailing list