From 152891bc12e56fb5bda576b22562780c19c4b934 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Mon, 13 Feb 2023 16:28:26 +0000 Subject: [PATCH] Surface Mesh Simplification: Improve Examples --- .../edge_collapse_bounded_normal_change.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Surface_mesh_simplification/examples/Surface_mesh_simplification/edge_collapse_bounded_normal_change.cpp b/Surface_mesh_simplification/examples/Surface_mesh_simplification/edge_collapse_bounded_normal_change.cpp index 88eb9b986e7..bc89a3b77aa 100644 --- a/Surface_mesh_simplification/examples/Surface_mesh_simplification/edge_collapse_bounded_normal_change.cpp +++ b/Surface_mesh_simplification/examples/Surface_mesh_simplification/edge_collapse_bounded_normal_change.cpp @@ -52,7 +52,7 @@ int main(int argc, char** argv) // This is a stop predicate (defines when the algorithm terminates). // In this example, the simplification stops when the number of undirected edges // left in the surface mesh drops below the specified number - const std::size_t stop_n = (argc > 2) ? std::stoi(argv[2]) : num_halfedges(surface_mesh)/2 - 1; + const std::size_t stop_n = (argc > 2) ? std::stoi(argv[2]) : num_edges(surface_mesh)/2 - 1; SMS::Edge_count_stop_predicate stop(stop_n); typedef SMS::LindstromTurk_placement Placement;