[vtkusers] How to transfer a 4x4 matrix to a vtkHomogeneousTransform object?
Herrera, Imanol
iherrera at ceit.es
Thu Apr 12 02:59:33 EDT 2012
I think this class does exactly what you want to do:
http://www.vtk.org/doc/release/5.0/html/a01712.html
-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of Sheena Gao
Sent: jueves, 12 de abril de 2012 0:22
To: vtkusers at vtk.org
Subject: [vtkusers] How to transfer a 4x4 matrix to a vtkHomogeneousTransform object?
Hi all,
I am wondering how to transfer the 4x4 matrix to vtkHomogeneousTransform
object. Someone did ask this question before, but I am still confused. In
that msg
(http://vtk.1045678.n5.nabble.com/vtkCamera-gt-SetUserViewTransform-vtkHomogeneousTransform-td3406070.html)
David Gobbi said vtkPerspectiveTransform could be used. I looked into the
code, but as I'm just a beginner, I still don't know which function I should
use. Let's say I got a 4x4 matrix. I want to use vtkcamera and get
m_Camera->SetUserTransform(transform);. The "transform" here is a
vtkHomogeneousTransform object, how can I convert my 4x4 matrix to
vtkHomogeneousTransform object? Could someone explain it in detail please?
Much appreciated.
Best regards,
Sheena
--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-transfer-a-4x4-matrix-to-a-vtkHomogeneousTransform-object-tp5634193p5634193.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list