[vtkusers] vtkTransform

Jorge Perez josp.jorge at gmail.com
Thu Feb 15 09:32:16 EST 2018


Hi, you can compose the linear transformation using the
method vtkTransform::Concatenate

https://www.vtk.org/doc/nightly/html/classvtkTransform.html#a74585e7404fd08bf08637a126e63799e

HTH

Jorge

2018-02-15 15:00 GMT+01:00 <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 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180215/e92fc707/attachment.html>


More information about the vtkusers mailing list