Hi David,<br><br>I tried the example about vtkTransformPolyDataFilter and applied it to my actor. But seems the coordinates didn&#39;t change in the way I discribed in my earlier mail.<br><br>So is that because I didn&#39;t use it right? Or I should use other methods to get access to the new dataset generated by vtkTransformPolyDataFilter?<br>
<br>Thank you very much.<br><br>Long<br><br><div class="gmail_quote">2011/10/29 David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;</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 class="gmail_quote"><div><div></div><div class="h5">On Sat, Oct 29, 2011 at 5:24 AM, Wenlong Wang <span dir="ltr">&lt;<a href="mailto:scc.wwl@gmail.com" target="_blank">scc.wwl@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Dear all,<br><br>I&#39;m trying to translate my actor (a polydata mesh) with
 vtkTransform and vtkTransformFilter. What I want to do is translate my 
actor and get the difference of display coordinates of some specific 
points.<br>
<br>My current method is like follows<br><b style="color: rgb(51, 51, 255);"><br>//-----------Translation finished above----------------------<br>for (int i = 0; i&lt; 14; i++)<br>    {<br>        points-&gt;GetPoint(landmarks[i], newcoord[i]);<br>



        ren-&gt;SetWorldPoint(newcoord[i]);<br>        ren-&gt;WorldToDisplay();<br>        ren-&gt;GetDisplayPoint(newcoord[i]);<br>    }<br>//-----------------------------------------------------------------------</b><br>



<br><font color="#000000">However, the display coordinates after the translation are the same as before translation. </font>And as I tested, the actor position and camera position were not changed
 after the translation. Even the actor did move to another position on 
the screen.<br><font color="#000000"><br>Is there any other method to achieve it?<br><br>Thank you very much for your kindly help.<br><br>
Best wishes<br>Long<br></font></blockquote><div><br></div></div></div><div>Why don&#39;t you just transform the actor instead of the data?</div><div><br></div><div>Take a look at these: </div><div><br></div><a href="https://docs.google.com/present/edit?id=0AcyIfGqnlfSoZGdqaGhnMnJfMjY1aGJqZGZ4ZnQ&amp;hl=en" target="_blank">https://docs.google.com/present/edit?id=0AcyIfGqnlfSoZGdqaGhnMnJfMjY1aGJqZGZ4ZnQ&amp;hl=en</a><br clear="all">

<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/TransformActor" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/TransformActor</a></div><div class="gmail_quote"><br><font color="#888888"><div>
David </div></font></div><br>
</blockquote></div><br>