From 9fc7d9670e41f3e6f4b3d5788a7f74686e6ab0b4 Mon Sep 17 00:00:00 2001 From: Dmitry Anisimov Date: Thu, 21 Oct 2021 17:33:29 +0200 Subject: [PATCH] added missing call to the remove method --- .../Poisson_surface_reconstruction_3/tutorial_example.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Poisson_surface_reconstruction_3/examples/Poisson_surface_reconstruction_3/tutorial_example.cpp b/Poisson_surface_reconstruction_3/examples/Poisson_surface_reconstruction_3/tutorial_example.cpp index 594961714d4..c7948a81c19 100644 --- a/Poisson_surface_reconstruction_3/examples/Poisson_surface_reconstruction_3/tutorial_example.cpp +++ b/Poisson_surface_reconstruction_3/examples/Poisson_surface_reconstruction_3/tutorial_example.cpp @@ -63,10 +63,11 @@ int main(int argc, char*argv[]) /////////////////////////////////////////////////////////////////// //! [Outlier removal] - CGAL::remove_outliers + typename Point_set::iterator rout_it = CGAL::remove_outliers (points, 24, // Number of neighbors considered for evaluation points.parameters().threshold_percent (5.0)); // Percentage of points to remove + points.remove(rout_it, points.end()); std::cout << points.number_of_removed_points() << " point(s) are outliers." << std::endl; @@ -86,7 +87,8 @@ int main(int argc, char*argv[]) double spacing = CGAL::compute_average_spacing (points, 6); // Simplify using a grid of size 2 * average spacing - CGAL::grid_simplify_point_set (points, 2. * spacing); + typename Point_set::iterator gsim_it = CGAL::grid_simplify_point_set (points, 2. * spacing); + points.remove(gsim_it, points.end()); std::cout << points.number_of_removed_points() << " point(s) removed after simplification." << std::endl;