[vtkusers] Number of points in a KdTree?

David Doria daviddoria+vtk at gmail.com
Sun Oct 25 08:53:02 EDT 2009


vtkSmartPointer<vtkPoints> Points = vtkSmartPointer<vtkPoints>::New();
// ... add points
  vtkSmartPointer<vtkKdTree> Tree = vtkSmartPointer<vtkKdTree>::New();
  Tree->BuildLocatorFromPoints(Points);

Now if I only have the tree object, how would I get the number of
points it contains?

Thanks,

David



More information about the vtkusers mailing list