Skip to content

Commit

Permalink
Use build3dIndex()
Browse files Browse the repository at this point in the history
  • Loading branch information
chambbj committed Sep 25, 2019
1 parent c678bff commit c0b4149
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions filters/FarthestPointSamplingFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ PointViewSet FarthestPointSamplingFilter::run(PointViewPtr inView)
PointViewPtr outView = inView->makeNew();

// Construct a KD-tree of the input view.
KD3Index kdi(*inView);
kdi.build();
KD3Index& kdi = inView->build3dIndex();

// Seed the output view with the first point in the current sorting.
PointId seedId(0);
Expand Down

0 comments on commit c0b4149

Please sign in to comment.