[vtkusers] vtkTransform::GetOrientation()
George Kamucha
kamucha at hfm.e-technik.uni-kassel.de
Wed Feb 21 08:51:07 EST 2001
Hi all,
I have just got a major shock after applying the
vtkTransform::GetOrientation(), due to the inaccuracy and the output
format, could I be doing something terribly wrong here? I tried
something very simple, below:
vtkTransform *trans = vtkTransform::New();
trans->Identity();
trans->PostMultiply();
trans->RotateY(10);
trans->RotateX(20);
trans->RotateZ(30);
trans->GetOrientation();
I was expecting the output to be just three elements (so I have read
from the Manpages!), but I instead got a matrix which after decomposing
( a lot of work!), gave seemingly the following: Y=9.39, X=20.3 and
Z=33.4. So I am wondering, how come I am not getting the three angles as
opposed to a matrix, and is the error usually this big? (I am using vtk
3.1, a nightly, August 2000). Please assist.
Regards
George
More information about the vtkusers
mailing list