Merge pull request #7262 from afabri/SMS-improve_examples-GF

Surface Mesh Simplification: Improve Examples
This commit is contained in:
Laurent Rineau 2023-02-24 16:14:36 +01:00
commit d952da245a
1 changed files with 1 additions and 1 deletions

View File

@ -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<Surface_mesh> stop(stop_n);
typedef SMS::LindstromTurk_placement<Surface_mesh> Placement;