[vtkusers] Python FindClosestPoint

Andy Bauer andy.bauer at kitware.com
Thu Apr 23 15:52:59 EDT 2015


Did you try using the FindPoint() method in the vtkUnstructuredGrid class?
It's implemented in vtkPointSet.

On Thu, Apr 23, 2015 at 12:05 PM, Jean-Michel <jm.lucas at gantha.com> wrote:

>  Dear all,
>
>
>
> I have an Unstructured Grid and I am trying to find the id of the closest
> point to a given point defined by three coordinates (x,y,z).
>
> I tried using the FindClosestPoint function of the PointLocator, but it
> did not work so far. Running
> pid=vtk.vtkPointLocator.FindClosestPoint(x,y,z) returns "TypeError: unbound
> method requires a vtkPointLocator as the first argument".
>
>
>
> I would appreciate if someone could explain to me what I am doing wrong or
> missing. Thanks in advance for your time.
>
>
>
> Jean-Michel
>
>
> ------------------------------
>   [image: Avast logo] <http://www.avast.com/>
>
> L'absence de virus dans ce courrier électronique a été vérifiée par le
> logiciel antivirus Avast.
> www.avast.com
>
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150423/ed8f9131/attachment.html>


More information about the vtkusers mailing list