[vtkusers] method to remove points in a polydata

David Doria daviddoria at gmail.com
Tue Jun 21 08:04:51 EDT 2011


On Tue, Jun 21, 2011 at 8:01 AM, nuno.jf <nunofernandes7 at gmail.com> wrote:
> Hi all,
>
> Is there any class in vtk with a method that removes the points from a
> polydata, that are outside a range defined by the user? For example,
> considering the origin's coordinates(0,0,0), I want all points that are 50
> units of distance way from it according to all the directions (X, Y,Z), to
> be removed.
> Best regards,
> Nuno

You're better off finding the points you want and extracting them
(creating a new polydata with them) rather than removing them:
http://www.itk.org/Wiki/VTK/Examples/Cxx/DataStructures/KDTree/FindPointsWithinRadius

David



More information about the vtkusers mailing list