CGAL / cgal

The public CGAL repository, see the README below
https://github.com/CGAL/cgal#readme
Other
4.88k stars 1.38k forks source link

Feature request: Surface mesh simplification with weights #4246

Closed jasjuang closed 4 years ago

jasjuang commented 5 years ago

Issue Details

I think it will be great if CGAL::Surface_mesh_simplification::edge_collapse can support some sort of weighting. Meaning simplify less on region of interest (e.g. human face), and simplify more on non-region of interest instead of simplifying uniformly. The per-vertex weight can be supplied by the downstream user maybe in the form of Property_map.

sloriot commented 5 years ago

There is already a GetCost concept so that user can design their custom tailored cost function to select which edges should be collapsed first. If you have a property map filled with weights on vertices, you can design your own cost looking at the weights stored in an edge endpoint.