mirror of https://github.com/CGAL/cgal
use edge_is_constrained_map in Adaptive_remeshing_sizing_field in demo
and fix its usage!
This commit is contained in:
parent
53939bc071
commit
acd6028e8f
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue