vtkTransform

Ron Inbar rinbar at netvision.net.il
Fri Oct 29 13:07:02 EDT 1999


The default mode for vtkTransform is PreMultiply.  Nevertheless, methods
like Translate and Rotate* set the matrix in a way suitable for
Post-Multiplication.  This results in the following peculiarities:

vtkTransform xform
xform Translate 10 20 30
xform SetPoint 0 0 0 1
xform GetPoint
=> 0 0 0
# I expected to get {10 20 30}!
xform Identity
xform RotateZ 90
xform SetPoint 1 0 0 1
xform GetPoint
=> 0 -1 0
# instead of {0 1 0}

Everything works as expected once xform is set to PostMultiply.  Is there a
reason for this behavior or is it just a legacy bug which is too late to fix
now?  That would be a shame!

RSVP,

Ron




-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------




More information about the vtkusers mailing list