[vtkusers] vtkPointLocator FindPointsWithinRadius Example

KS Jothybasu jothybasu at gmail.com
Wed Jan 27 12:01:23 EST 2010


Hi all,

Does anyone have an example for vtkPointLocator.FindPointsWithinRadius()

I am having trouble with it, here is my code

x=vtk.vtkSphereSource()
x.SetRadius(50)
x.SetPhiResolution(50)
x.SetThetaResolution(50)
x.Update()



result=vtk.vtkIdList()
Loc=vtk.vtkPointLocator()
Loc.SetDataSet(x.GetOutput())
Loc.FindPointsWithinRadius(25,[0,0,0],result)

prints
result None

Any hint?

I think using this vtkFindLocator/KDTree there should be some method to get
the points inside a polygon of any shape?

Thanks

Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100127/cdc10261/attachment.htm>


More information about the vtkusers mailing list