<div dir="ltr"><div><div>If you need point to be picked you should use vtkPointPicker.<br></div><div>It has has GetPointId method which returns point ID.<br>If you know point id you can get coordinates for this point from dataset.<br>
</div><br></div><div>Regards,<br></div><div> Alex<br></div><br><div><div> <br><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 3, 2013 at 12:01 PM, mahendra <span dir="ltr"><<a href="mailto:mahendra123awale@gmail.com" target="_blank">mahendra123awale@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">thanks alex for comments. I tried with vtk cell picker as follows:<br>
<br>
public void mouseMoved(MouseEvent e) {<br>
renderWindowPanel.lock();<br>
double[] p = cellPicker.GetPickPosition();<br>
System.out.println(" Position: " + p[0] + ", " + p[1] +<br>
", " + p[2]);<br>
}<br>
<br>
It gives me some co-ordinates but i do not know how to convert them or link<br>
them to original point co-ordinates. Any suggestion?<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Getting-Original-3d-Point-co-ordinate-on-mouse-hover-tp5719771p5719805.html" target="_blank">http://vtk.1045678.n5.nabble.com/Getting-Original-3d-Point-co-ordinate-on-mouse-hover-tp5719771p5719805.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br></div>