[vtkusers] Number of points in a KdTree?

Paul Edwards paul.m.edwards at gmail.com
Mon Oct 26 14:58:58 EDT 2009


The original data should be returned with vtkKdTree::GetDataSets()

Regards,
Paul

2009/10/25 David Doria <daviddoria+vtk at gmail.com>:
> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list