I don&#39;t think there&#39;s anything wrong.  The sphere has radius of 50 (remember that the sphere is just a surface mesh and not a volumetric mesh) and you&#39;re asking to find all points within radius 25 of the center of the sphere which there are none. <br>
<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Message: 5<br>
Date: Wed, 27 Jan 2010 17:01:23 +0000<br>
From: KS Jothybasu &lt;<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>&gt;<br>
Subject: [vtkusers] vtkPointLocator FindPointsWithinRadius Example<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:1dd3c8b21001270901j18d69c07ideeb0fe666216fee@mail.gmail.com">1dd3c8b21001270901j18d69c07ideeb0fe666216fee@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi all,<br>
<br>
Does anyone have an example for vtkPointLocator.FindPointsWithinRadius()<br>
<br>
I am having trouble with it, here is my code<br>
<br>
x=vtk.vtkSphereSource()<br>
x.SetRadius(50)<br>
x.SetPhiResolution(50)<br>
x.SetThetaResolution(50)<br>
x.Update()<br>
<br>
<br>
<br>
result=vtk.vtkIdList()<br>
Loc=vtk.vtkPointLocator()<br>
Loc.SetDataSet(x.GetOutput())<br>
Loc.FindPointsWithinRadius(25,[0,0,0],result)<br>
<br>
prints<br>
result None<br>
<br>
Any hint?<br>
<br>
I think using this vtkFindLocator/KDTree there should be some method to get<br>
the points inside a polygon of any shape?<br>
<br>
Thanks<br>
<br>
Jothy<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20100127/cdc10261/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20100127/cdc10261/attachment-0001.htm</a>&gt;<br>

<br></blockquote></div><br>