<div dir="ltr"><div>You may use multiple classes to do it.<br></div><div><br>For example:<br></div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/DataStructures/KdTreePointLocatorClosestPoint">http://www.vtk.org/Wiki/VTK/Examples/Cxx/DataStructures/KdTreePointLocatorClosestPoint</a><br>
<br></div><div>Keep in mind that the more complicated class you use and the faster search is usually more time/resources is spend on preparation of the data.<br></div><div>And often simple loop over already existing data may be preferable if you are going to do it once before changing the data.<br>
</div><div><br></div><div>Regards,<br></div><div> Alex<br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 4, 2013 at 12:12 PM, Marco Nawijn <span dir="ltr"><<a href="mailto:nawijn@gmail.com" target="_blank">nawijn@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi David,</p>
<p dir="ltr">You can use the vtkPointLocator class to get a point index for a given coordinate. I am sending this mail from my phone so I cannot give you a working example for the moment.</p>
<p dir="ltr">Marco</p>
<div style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><div dir="ltr"><div>Hi all,<div> I am trying to find point ID of a point if the point coordinates are given, could you please tell me would i do this?</div>
<div><br></div><div>david</div></div><div><br></div></div>
<br></div>_______________________________________________<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></div>
<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></div>