[vtkusers] Transforms

Sean Richards sean at millwood.ca
Tue Sep 14 09:33:31 EDT 2004


Hello,

I have a situation where I move actors around the screen. Later, I need to apply the transformation the actor has undergone to the original data.

I have found the method (in Prop3D)

virtual void  GetMatrix (vtkMatrix4x4 *m) 

so I can use this to gain access to the transformation for the actor. The problem is how to apply this to the original data.

I have found

vtkMatrixToLinearTransform

but cannot seem to get this to convert a vtkMatrix4x4 to a vtkAbstractTransform

I need the vtkAbstractTransform so I can use

vtkTransformPolyDataFilter

which I think should be able to transform the original polydata.

If anyone knows how to apply the actor transformation to the original data, I would greatly appreciate some help.

Thanks!!

Sean


More information about the vtkusers mailing list