<font style="font-family: georgia,serif; color: rgb(51, 51, 51);" color="#333333"><font size="2">Hello all,<br><br>I
am having a problem with FindPointsWithinRadius function of
vtkPointLocator class. I have a bunch of points in a certain volume,
with no specific topology. Using the following code snippet, I create a
point locator object and specify its data set:<br>

<i><br></i></font></font>

<p style="margin: 0px; text-indent: 0px; font-family: georgia,serif; color: rgb(51, 51, 51);"><i>            vtkPoints* edge_pts = vtkPoints::New();</i></p><p style="margin: 0px; text-indent: 0px; font-family: georgia,serif; color: rgb(51, 51, 51);">



<i>            for(int i = 0; i &lt; someLimit; i++)</i></p>
<p style="margin: 0px; text-indent: 0px; font-family: georgia,serif; color: rgb(51, 51, 51);"><i>            {</i></p><p style="margin: 0px; text-indent: 0px; font-family: georgia,serif; color: rgb(51, 51, 51);"><i>                edge_pts-&gt;InsertNextPoint(somePoint);</i></p>



<p style="margin: 0px; text-indent: 0px; font-family: georgia,serif; color: rgb(51, 51, 51);"><i>            }</i></p><p style="margin: 0px; text-indent: 0px; font-family: georgia,serif; color: rgb(51, 51, 51);"><i><br></i></p>



<p style="margin: 0px; text-indent: 0px; font-family: georgia,serif; color: rgb(51, 51, 51);"><i>            vtkPolyData* edge_pts_set = vtkPolyData::New();</i></p>
<p style="margin: 0px; text-indent: 0px; font-family: georgia,serif; color: rgb(51, 51, 51);"><i>            edge_pts_set-&gt;SetPoints(edge_pts);</i></p>
<p style="margin: 0px; text-indent: 0px; font-family: georgia,serif; color: rgb(51, 51, 51);"><i>            edge_pts_set-&gt;Update();</i></p><p style="margin: 0px; text-indent: 0px; font-family: georgia,serif; color: rgb(51, 51, 51);">



<i><br></i></p>

<p style="margin: 0px; text-indent: 0px; font-family: georgia,serif; color: rgb(51, 51, 51);"><i>            vtkPointLocator* NeighborLocator = vtkPointLocator::New();</i></p>
<p style="margin: 0px; text-indent: 0px; font-family: georgia,serif; color: rgb(51, 51, 51);"><i>            NeighborLocator-&gt;SetDataSet(edge_pts_set);</i></p>
<p style="margin: 0px; text-indent: 0px; font-family: georgia,serif; color: rgb(51, 51, 51);"><i>            NeighborLocator-&gt;BuildLocator();</i></p><br style="font-family: georgia,serif; color: rgb(51, 51, 51);"><font style="font-family: georgia,serif; color: rgb(51, 51, 51);" color="#333333"><font size="2">Then, I use the </font></font><font style="font-family: georgia,serif; color: rgb(51, 51, 51);" color="#333333"><font size="2">FindPointsWithinRadius
function of NeighborLocator, where I (manually) made sure that there
are several neighbors of the query point. </font></font><span style="font-family: georgia,serif; color: rgb(51, 51, 51);">However, the aforementioned function returns no neighbors. Any ideas on where the problem could be?</span><br>



<font color="#333333"><font size="2"><font face="georgia,serif"><br>Regards,<br><br><br>Burak</font></font></font>