From 7cdc3775fdebe7ab55a279b781eb950942e39958 Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Fri, 4 Sep 2020 15:59:17 +0200 Subject: [PATCH] get the sharp edges back after remeshing they were saved in ecm and edges_to_protect but not back-ported to eif --- .../Polyhedron/Plugins/PMP/Isotropic_remeshing_plugin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Isotropic_remeshing_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Isotropic_remeshing_plugin.cpp index 222e0310031..ffd400db798 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Isotropic_remeshing_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Isotropic_remeshing_plugin.cpp @@ -608,6 +608,12 @@ public Q_SLOTS: .number_of_relaxation_steps(nb_smooth) .edge_is_constrained_map(ecm) .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) {