mirror of https://github.com/CGAL/cgal
Merge pull request #7262 from afabri/SMS-improve_examples-GF
Surface Mesh Simplification: Improve Examples
This commit is contained in:
commit
d952da245a
|
|
@ -52,7 +52,7 @@ int main(int argc, char** argv)
|
||||||
// This is a stop predicate (defines when the algorithm terminates).
|
// This is a stop predicate (defines when the algorithm terminates).
|
||||||
// In this example, the simplification stops when the number of undirected edges
|
// In this example, the simplification stops when the number of undirected edges
|
||||||
// left in the surface mesh drops below the specified number
|
// 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);
|
SMS::Edge_count_stop_predicate<Surface_mesh> stop(stop_n);
|
||||||
|
|
||||||
typedef SMS::LindstromTurk_placement<Surface_mesh> Placement;
|
typedef SMS::LindstromTurk_placement<Surface_mesh> Placement;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue