<div dir="ltr">Are you using vtkPolyDataTransformFilter along with vtkTransform?<br><br>Jothy<br><br><div class="gmail_quote">On Thu, Oct 27, 2011 at 5:13 PM, Wenlong Wang <span dir="ltr">&lt;<a href="mailto:scc.wwl@gmail.com">scc.wwl@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi everyone,<br><br>I&#39;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&#39;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&#39;ll be extremely appreciate it!<br><br>Thank you very much!<br><br>Best wishes<br>Long<br>
<br>_______________________________________________<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><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>
</div>