Incorporating a 3x3 rotation matrix into a vtkTransform

Tim Hutton T.Hutton at
Mon Jan 17 11:09:18 EST 2000

vtk users, 

Simple question, I'm a bit rusty with my 4x4 transformation matrices. I
have a routine that computes the  rotation required to LS align two sets of
points. It returns a 3x3 rotation matrix, how do I add this to a
vtkTransform. Is it as simple as adding a row of 1's?


R = a b c
    d e f
    g h i

T = a b c 0
    d e f 0
    g h i 0
    1 1 1 1

Or is it more complicated?


Tim Hutton, Research Assistant            Email: T.Hutton at
MINORI Project           
Dental and Medical Informatics                   Tel: [+44] (0171) 915 2344
Eastman Dental Institute, UCL                    Fax: [+44] (0171) 915 2303
256 Gray's Inn Road, London WC1X 8LD, UK
This email represents the views of the sender alone and must not be
construed as representing the views of the Eastman Dental Institute. It may
contain confidential information and may be protected by law as a legally
privileged document and copyright work. Its content should not be disclosed
and it should not be given or copied to anyone other than the person(s)
named or referenced above. If you have received this email in error, please
contact the sender.

This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.

More information about the vtkusers mailing list