[Paraview-developers] Strange Problem with vtkKdTreePointLocator

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Feb 1 13:23:42 EST 2017


Seems to me that an incremental-point-locator may be better suited for your
use-case. See
http://www.vtk.org/doc/nightly/html/classvtkIncrementalPointLocator.html.
You may want to use one of its subclasses instead.

On Wed, Feb 1, 2017 at 12:48 PM, Amit Prabhakar <amitprabhakar05 at gmail.com>
wrote:

> Hello All!
>
>
> I am facing a strange problem with vtkKdTreePointLocator class that says:
>
> *ERROR : In /path/to/VTK-build/Common/DataModel/vtkLocator.cxx line 49*
> *vtkPointLocator (0xf132d0): Input Not set*
>
>
> I am setting the vtkKdtreePointLocator using a polydata. The poly data get
> 2-3 points and a cell added to it, in a for loop. After every loop
> operation, we update the poly data, the kdtreelocator and BuildLocator().
>
> *vtkKdTreePontLocator *kdt = vtkKdTreePointLocator::New();*
> *kdt->SetDataSet(polydata_new);*
>
> *for(int i=0;i<1000;i++)*
> *{*
> * ….  //the operations to add a few points and a cell to polydata_new *
> * <check if there is a point in kdt that if near-enough to an arbitrary
> point. Do some point insertion to polydata_new>*
>
> * kdt->SetDataSet(polydata_new);*
> * kdt->BuildLocator();*
> * kdt->Update();*
>
>
> *}*
>
>
> This seems like a simple operation, but am not able to figure out why this
> happens. Your help can put my brains straight.
>
> Thanks in advance!
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=
> Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20170201/69f6d733/attachment.html>


More information about the Paraview-developers mailing list