<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Utkarsh,<div class=""><br class=""></div><div class="">Thanks for your suggestion. I used vtkOctreeIncrementalPointLocator class and it worked fine. It also helped me in managing the duplicate points inside a vtkPolydata.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Any idea how a vtkCellArray class can filter the duplicate cells? </div><div class=""><br class=""></div><div class="">Thanks again,</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 1, 2017, at 23:18, Amit Prabhakar <<a href="mailto:amitprabhakar05@gmail.com" class="">amitprabhakar05@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello All!<div class=""><br class=""></div><div class=""><br class=""></div><div class="">I am facing a strange problem with vtkKdTreePointLocator class that says:</div><div class=""><br class=""></div><div class=""><font color="#a77b00" class=""><b class="">ERROR : In /path/to/VTK-build/Common/DataModel/vtkLocator.cxx line 49</b></font></div><div class=""><font color="#a77b00" class=""><b class="">vtkPointLocator (0xf132d0): Input Not set</b></font></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">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().</div><div class=""><br class=""></div><div class=""><font color="#9a244f" class=""><b class="">vtkKdTreePontLocator *kdt = vtkKdTreePointLocator::New();</b></font></div><div class=""><font color="#9a244f" class=""><b class="">kdt->SetDataSet(polydata_new);</b></font></div><div class=""><font color="#9a244f" class=""><b class=""><br class=""></b></font></div><div class=""><font color="#9a244f" class=""><b class="">for(int i=0;i<1000;i++)</b></font></div><div class=""><font color="#9a244f" class=""><b class="">{</b></font></div><div class=""><font color="#9a244f" class=""><b class=""><span class="Apple-tab-span" style="white-space:pre"> </span>…. //the operations to add a few points and a cell to polydata_new </b></font></div><div class=""><b class=""><font color="#9a244f" class=""><span class="Apple-tab-span" style="white-space:pre"> </span></font><span style="color: rgb(154, 36, 79);" class=""><</span><span style="color: rgb(154, 36, 79);" class="">check if there is a point in kdt that if near-enough to an arbitrary point. Do some point insertion to polydata_new></span></b></div><div class=""><font color="#9a244f" class=""><b class=""><br class=""></b></font></div><div class=""><font color="#9a244f" class=""><b class=""><span class="Apple-tab-span" style="white-space:pre"> </span>kdt->SetDataSet(polydata_new);</b></font></div><div class=""><font color="#9a244f" class=""><b class=""><span class="Apple-tab-span" style="white-space:pre"> </span>kdt->BuildLocator();</b></font></div><div class=""><font color="#9a244f" class=""><b class=""><span class="Apple-tab-span" style="white-space:pre"> </span>kdt->Update();</b></font></div><div class=""><font color="#9a244f" class=""><b class=""><br class=""></b></font></div><div class=""><b class=""><br class=""></b></div><div class=""><font color="#9a244f" class=""><b class="">}</b></font></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">This seems like a simple operation, but am not able to figure out why this happens. Your help can put my brains straight.</div><div class=""><br class=""></div><div class="">Thanks in advance!</div></div></div></blockquote></div><br class=""></div></body></html>