<div dir="ltr">
<div dir="ltr">Hi Rahul,</div><div dir="ltr">It seems that you want to provide x,y,z coordinates and get the index of the point back. Once you have the index, you can use polydata's "GetPointData" method to access the point data.</div>
<div dir="ltr"><br></div><div dir="ltr">To do this, you can use the vtkKdTreePointLocator which as methods like "FindClosestPoint", "FindNClosestPoints", and "FindPointsWithinRadius". There are a few examples of how to use this class at <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx#KD-Tree">http://www.vtk.org/Wiki/VTK/Examples/Cxx#KD-Tree</a>. There are other classes like vtkPointLocator, vtkOctreePointLocator which you can look at too.</div>
<div dir="ltr"><div><br></div><div>Cheers,</div><div>Seth</div><div><br></div><span style="font-style:italic">Seth Gilchrist, MASc, PhD Candidate</span><br style="font-style:italic"><span style="font-style:italic;font-family:'courier new',monospace">+---------------------------------------+</span><br style="font-style:italic;font-family:'courier new',monospace">
<span style="font-style:italic;font-family:'courier new',monospace">Orthopaedic and Injury Biomechanics Group<br>UBC Department of Mechanical Engineering</span><span style="font-style:italic;font-family:'courier new',monospace"></span><br style="font-style:italic;font-family:'courier new',monospace">
<span style="font-style:italic;font-family:'courier new',monospace">6th Floor-2635 Laurel Street</span><br style="font-style:italic;font-family:'courier new',monospace"><span style="font-style:italic;font-family:'courier new',monospace">Vancouver, BC V5Z-1M9<br>
</span><span style="font-style:italic;font-family:'courier new',monospace">+---------------------------------------+<br><a href="mailto:seth@mech.ubc.ca" target="_blank">seth@mech.ubc.ca</a><br>Fax 604-675-2576</span></div>
</div>