[vtkusers] Point ID of a point if coordinates are given
Alex Malyushytskyy
alexmalvtk at gmail.com
Mon Aug 5 21:16:02 EDT 2013
You may use multiple classes to do it.
For example:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/DataStructures/KdTreePointLocatorClosestPoint
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.
And often simple loop over already existing data may be preferable if you
are going to do it once before changing the data.
Regards,
Alex
On Sun, Aug 4, 2013 at 12:12 PM, Marco Nawijn <nawijn at gmail.com> wrote:
> Hi David,
>
> 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.
>
> Marco
> Hi all,
> 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?
>
> david
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130805/84cbd4e9/attachment.htm>
More information about the vtkusers
mailing list