[vtkusers] How to transfer a 4x4 matrix to a vtkHomogeneousTransform object?

Sheena Gao 280908696 at qq.com
Wed Apr 11 18:21:31 EDT 2012


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.



More information about the vtkusers mailing list