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><br>Can anyone explain why is this happening?<br><br>Many thanks in advance.<br>
<br>Long<br><br><div class="gmail_quote">2011/10/28 Wenlong Wang <span dir="ltr"><<a href="mailto:scc.wwl@gmail.com">scc.wwl@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;">
Dear all,<br><br>I'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< 14; i++)<br> {<br> points->GetPoint(landmarks[i], newcoord[i]);<br>
ren->SetWorldPoint(newcoord[i]);<br> ren->WorldToDisplay();<br> ren->GetDisplayPoint(newcoord[i]);<br> }<br>//-----------------------------------------------------------------------</b><br>
<br><font color="#000000">However, the display coordinates after the translation are the same as before translation.<br><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>