mirror of https://github.com/CGAL/cgal
Merge pull request #4979 from janetournois/PMP-remesh_after_detect_sharp_features-jtournois
Polyhedron demo - get the sharp edges back after remeshing
This commit is contained in:
commit
a246b3d776
|
|
@ -608,6 +608,12 @@ public Q_SLOTS:
|
||||||
.number_of_relaxation_steps(nb_smooth)
|
.number_of_relaxation_steps(nb_smooth)
|
||||||
.edge_is_constrained_map(ecm)
|
.edge_is_constrained_map(ecm)
|
||||||
.relax_constraints(smooth_features));
|
.relax_constraints(smooth_features));
|
||||||
|
|
||||||
|
//recollect sharp edges
|
||||||
|
for(edge_descriptor e : edges(pmesh))
|
||||||
|
eif[e] = false;
|
||||||
|
for(edge_descriptor e : edges_to_protect)
|
||||||
|
eif[e] = true;
|
||||||
}
|
}
|
||||||
if (fpmap_valid)
|
if (fpmap_valid)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue