diff --git a/Polyhedron/demo/Polyhedron/Plugins/Tetrahedral_remeshing/Tetrahedral_remeshing_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Tetrahedral_remeshing/Tetrahedral_remeshing_plugin.cpp index 1d8b443a09f..6b4298425f3 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Tetrahedral_remeshing/Tetrahedral_remeshing_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Tetrahedral_remeshing/Tetrahedral_remeshing_plugin.cpp @@ -137,12 +137,13 @@ public Q_SLOTS: { CGAL::tetrahedral_isotropic_remeshing( c3t3_item->c3t3(), - ASizing::create_adaptive_sizing_field(c3t3_item->c3t3().triangulation()), + ASizing::create_adaptive_sizing_field(c3t3_item->c3t3().triangulation(), + CGAL::parameters::edge_is_constrained_map(Constraints_pmap(constraints))), CGAL::parameters::remesh_boundaries(!protect) .number_of_iterations(nb_iter) - .smooth_constrained_edges(smooth_edges) - .edge_is_constrained_map(Constraints_pmap(constraints)) - ); + .smooth_constrained_edges(smooth_edges) + .edge_is_constrained_map(Constraints_pmap(constraints)) + ); } else { diff --git a/Tetrahedral_remeshing/include/CGAL/Tetrahedral_remeshing/Adaptive_remeshing_sizing_field.h b/Tetrahedral_remeshing/include/CGAL/Tetrahedral_remeshing/Adaptive_remeshing_sizing_field.h index 1413ee3ee8f..d06a48df0d8 100644 --- a/Tetrahedral_remeshing/include/CGAL/Tetrahedral_remeshing/Adaptive_remeshing_sizing_field.h +++ b/Tetrahedral_remeshing/include/CGAL/Tetrahedral_remeshing/Adaptive_remeshing_sizing_field.h @@ -316,7 +316,8 @@ average_edge_length_around(const Vertex_handle v, const Tr& tr, std::back_inserter(edges), [&ecmap](const Edge& e) { - return get(ecmap, e); + const auto evv = CGAL::Tetrahedral_remeshing::make_vertex_pair(e); + return get(ecmap, evv); }); break;