[vtkusers] vtkTransform

mafuentes at uclv.cu mafuentes at uclv.cu
Mon Feb 19 08:14:33 EST 2018


Thanks, that worked perfectly. 


De: "Jorge Perez" <josp.jorge at gmail.com> 
Para: mafuentes at uclv.cu 
CC: "vtkusers" <vtkusers at vtk.org> 
Enviados: Jueves, 15 de Febrero 2018 12:32:16 
Asunto: Re: [vtkusers] vtkTransform 

Hi, you can compose the linear transformation using the method vtkTransform::Concatenate 
[ https://www.vtk.org/doc/nightly/html/classvtkTransform.html#a74585e7404fd08bf08637a126e63799e | https://www.vtk.org/doc/nightly/html/classvtkTransform.html#a74585e7404fd08bf08637a126e63799e ] 

HTH 

Jorge 

2018-02-15 15:00 GMT+01:00 < [ mailto:mafuentes at uclv.cu | mafuentes at uclv.cu ] > : 





I'm trying to apply a transformation pipeline to a cylinder source in the following way: 

- Translation -x, -y, -z 

- RotationZ alpha 

- RotationX beta 

- Translation x, y, z 



That is, to move it to the origin of coordinates, rotate it and then translate it back to it's original position. the only way I've managed to make it work so far is to define a vtkTransform and a vtkTransformFilter for each operation and build a pipeline like that. 



Is there another way to do it so I don't have to create both objects for each operation? 

_______________________________________________ 
Powered by [ http://www.kitware.com/ | www.kitware.com ] 

Visit other Kitware open-source projects at [ http://www.kitware.com/opensource/opensource.html | 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 | http://www.vtk.org/Wiki/VTK_FAQ ] 

Search the list archives at: [ http://markmail.org/search/?q=vtkusers | http://markmail.org/search/?q=vtkusers ] 

Follow this link to subscribe/unsubscribe: 
[ https://vtk.org/mailman/listinfo/vtkusers | https://vtk.org/mailman/listinfo/vtkusers ] 





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180219/4d227e4f/attachment.html>


More information about the vtkusers mailing list