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 the points inside a polygon of any shape?<br>
<br>Thanks<br><br>Jothy<br>