Wed, 12/03/2008 - 12:21
Forums:
Hello!
I would like to implement a view rotation around the geometric z-axis passing through the projected center of the screen. How can this be done? A view rotation around the geometric z-axis passing through (0,0,0) was easy by moving the eye(V3d_View::SetEye) on a circle parallel to the geometric xy-plane.
I'd be thankful for any hints,
Dirk
Wed, 12/03/2008 - 14:45
If you choise the Mode "Rotate about Z Axis" yous have to set the deafult rotation Axis in V3d_View:
myV3d_View->SetAxis(0, 0, 0, 0, 0, 1);
to rotate the Eye you call the funktion:
myV3d_View->Rotate(aAngle, true);
Wed, 12/03/2008 - 15:53
Thanks! I'm still experimenting with the first three parameters of SetAxis, but this seems to lead in the right direction.
Dirk