Surface Mesh Simplification: Improve Examples

This commit is contained in:
Andreas Fabri 2023-02-13 16:28:26 +00:00
parent d979e070be
commit 152891bc12
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;