From 9f5f5aa7a786ffa0d4b94407e15e59ed9ecb70ff Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Mon, 27 Sep 2021 17:24:24 +0200 Subject: [PATCH] use angle_and_area_smoothing and remove the use of deprecated smooth_mesh() --- .../demo/Polyhedron/Plugins/PMP/Smoothing_plugin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Smoothing_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Smoothing_plugin.cpp index 060711365df..9d306cc5e7b 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Smoothing_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Smoothing_plugin.cpp @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include @@ -278,7 +278,7 @@ public Q_SLOTS: if(poly_item) { - smooth_mesh(pmesh, parameters::do_project(projection) + angle_and_area_smoothing(pmesh, parameters::do_project(projection) .number_of_iterations(nb_iter) .vertex_is_constrained_map(vcmap) .use_safety_constraints(use_safety_measures) @@ -296,7 +296,7 @@ public Q_SLOTS: // No faces selected --> use all faces if(std::begin(selection_item->selected_facets) == std::end(selection_item->selected_facets)) { - smooth_mesh(pmesh, parameters::do_project(projection) + angle_and_area_smoothing(pmesh, parameters::do_project(projection) .number_of_iterations(nb_iter) .vertex_is_constrained_map(vcmap) .edge_is_constrained_map(selection_item->constrained_edges_pmap()) @@ -307,7 +307,7 @@ public Q_SLOTS: } else // some faces exist in the selection { - smooth_mesh(selection_item->selected_facets, pmesh, parameters::do_project(projection) + angle_and_area_smoothing(selection_item->selected_facets, pmesh, parameters::do_project(projection) .number_of_iterations(nb_iter) .vertex_is_constrained_map(vcmap) .edge_is_constrained_map(selection_item->constrained_edges_pmap())