<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Thanks, that worked perfectly.<br></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>De: </b>"Jorge Perez" <josp.jorge@gmail.com><br><b>Para: </b>mafuentes@uclv.cu<br><b>CC: </b>"vtkusers" <vtkusers@vtk.org><br><b>Enviados: </b>Jueves, 15 de Febrero 2018 12:32:16<br><b>Asunto: </b>Re: [vtkusers] vtkTransform<br></div><br><div data-marker="__QUOTED_TEXT__"><div dir="ltr">Hi, you can compose the linear transformation using the method vtkTransform::Concatenate<br><div><a href="https://www.vtk.org/doc/nightly/html/classvtkTransform.html#a74585e7404fd08bf08637a126e63799e" target="_blank">https://www.vtk.org/doc/nightly/html/classvtkTransform.html#a74585e7404fd08bf08637a126e63799e</a><br></div><br><div>HTH</div><br><div>Jorge</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-15 15:00 GMT+01:00  <span dir="ltr"><<a href="mailto:mafuentes@uclv.cu" target="_blank">mafuentes@uclv.cu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div id="m_5410524898004074472zimbraEditorContainer" style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000" class="m_54105248980040744721"><div>     <p class="MsoNormal" style="margin:0px">I'm trying to apply a transformation pipeline to a cylinder source in the following way:<u></u><u></u></p><p class="MsoNormal" style="margin:0px">- Translation -x, -y, -z<u></u><u></u></p><p class="MsoNormal" style="margin:0px">- RotationZ alpha<u></u><u></u></p><p class="MsoNormal" style="margin:0px">- RotationX beta<u></u><u></u></p><p class="MsoNormal" style="margin:0px">- Translation x, y, z<u></u><u></u></p><p class="MsoNormal" style="margin:0px"><u></u> <u></u></p><p class="MsoNormal" style="margin:0px">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.<u></u><u></u></p><p class="MsoNormal" style="margin:0px"><u></u> <u></u></p><p class="MsoNormal" style="margin:0px">Is there another way to do it so I don't have to create both objects for each operation?<u></u><u></u></p> </div></div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div></div><br></div></div></body></html>