Hi, Jothybasu,<br><br>Thank you very much for your reply.<br><br>No, I didn't use it in my app. Does that matter? If so, why the scale and rotate functions works without vtkTransformFilter?<br><br>Wenlong<br><br><div class="gmail_quote">
2011/10/27 Jothybasu Selvaraj <span dir="ltr"><<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">Are you using vtkPolyDataTransformFilter along with vtkTransform?<br><br>Jothy<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Thu, Oct 27, 2011 at 5:13 PM, Wenlong Wang <span dir="ltr"><<a href="mailto:scc.wwl@gmail.com" target="_blank">scc.wwl@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">Hi everyone,<br><br>I'm trying to scale, rotate and translate my polydata. My strategy is using vtkTransform to do these operations one by one. The order is scale, rotate and translate. I calculate the transform parameters and use vtkTransform::Scale, ::RotateZ() and ::Translate() to define the transformation. Then I pass this transformation to my camera by vtkCamera::SetUserTransform(). After that, I do the visualization pipeline again to show the new polydata object. And the visualization pipeline is capsualted as an independent function.<br>
<br>So far, the scale and rotate works well and the polydata changes as I expected. However, as I start to translate it, it disappears! It doesn't work even I put simple numbers as the input parameters. <br><br>I tried to pass the transform to my actor and use vtkActor::SetUserTransform to do it. But again, the scale and rotate works well and translate failed.<br>
<br>Can anyone give me some advice? I'll be extremely appreciate it!<br><br>Thank you very much!<br><br>Best wishes<br>Long<br>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br><div dir="ltr">Jothybasu K Selvaraj<br>PhD Student<br>University of Liverpool<br>Liverpool,UK<br></div><br>
</font></div>
</blockquote></div><br>