use edge_is_constrained_map in Adaptive_remeshing_sizing_field in demo

and fix its usage!
This commit is contained in:
Jane Tournois 2024-03-28 17:28:48 +01:00
parent 53939bc071
commit acd6028e8f
2 changed files with 7 additions and 5 deletions

View File

@ -137,12 +137,13 @@ public Q_SLOTS:
{ {
CGAL::tetrahedral_isotropic_remeshing( CGAL::tetrahedral_isotropic_remeshing(
c3t3_item->c3t3(), 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) CGAL::parameters::remesh_boundaries(!protect)
.number_of_iterations(nb_iter) .number_of_iterations(nb_iter)
.smooth_constrained_edges(smooth_edges) .smooth_constrained_edges(smooth_edges)
.edge_is_constrained_map(Constraints_pmap(constraints)) .edge_is_constrained_map(Constraints_pmap(constraints))
); );
} }
else else
{ {

View File

@ -316,7 +316,8 @@ average_edge_length_around(const Vertex_handle v, const Tr& tr,
std::back_inserter(edges), std::back_inserter(edges),
[&ecmap](const Edge& e) [&ecmap](const Edge& e)
{ {
return get(ecmap, e); const auto evv = CGAL::Tetrahedral_remeshing::make_vertex_pair(e);
return get(ecmap, evv);
}); });
break; break;