<div>Hi everyone,</div>
<div>&nbsp;</div>
<div>I&#39;m the new one to use the vtk, and there is a problem trobling me several days so that I could not continue my research working. This problem is how to get the mouse position in an actor for 3D rendering?</div>

<div>&nbsp;</div>
<div>To get the event position is very available now, however the position of the actor is wrong when I get the pickerposition of vtkpointvtk by the event postion.</div>
<div>&nbsp;</div>
<div>For example when getting the mouse position in the actor:</div>
<div>********************************************************************************************************</div>
<div>
<p>&nbsp;vtkRenderWindowInteractor* iren = vtkRenderWindowInteractor::SafeDownCast(obj);<br>&nbsp;int x = 0, y = 0;<br>&nbsp;iren-&gt;GetEventPosition(x, y);</p>
<p>&nbsp;//get the picker handle from the interactor<br>&nbsp;vtkPointPicker *pointpicker = (vtkPointPicker *)(iren-&gt;GetPicker());<br>&nbsp;<br>&nbsp;double position[3];<br>&nbsp;//start the picking process<br>&nbsp;if (pointpicker-&gt;Pick((double)position[0], (double)position[1], 
0.0, ren) != 0)<br>&nbsp;{<br>&nbsp;&nbsp;//get the list of picked point<br>&nbsp;&nbsp;vtkPoints* thePointList = pointpicker-&gt;GetPickedPositions();</p>
<p>&nbsp;&nbsp;//get the number of picked points<br>&nbsp;&nbsp;int nbrpoints = thePointList-&gt;GetNumberOfPoints();</p>
<p>&nbsp;&nbsp;if (nbrpoints&lt;=0)<br>&nbsp;&nbsp;&nbsp;return;</p>
<p><br>&nbsp;&nbsp;pointpicker-&gt;GetPickPosition(position);&nbsp;&nbsp; // The position is wrong in the actor.</p>
<p>&nbsp;}</p>
<p>********************************************************************************************************</p></div>
<div>I tested it many times, and tried severl ways, but failed finally. The position I got is not the position for the actor, and there is &quot;small error&quot; for x-y, but &quot;big error&quot; for z. </div>
<div>I guess: Is this problem related with the camera viewpoint?</div>
<div>&nbsp;</div>
<div>Any body knows it, please tell me or give me some example codes.</div>
<div>I&#39;m appreciate you very much.<br clear="all"><br>-- <br>Thanks<br>Feifeng </div>