Merge branch 'PMP-add_bbox_to_face_graph-jtournois' of https://github.com/janetournois/cgal into PMP-add_bbox_to_face_graph-jtournois

This commit is contained in:
Jane Tournois 2024-03-04 16:05:56 +00:00
commit c074187836
1 changed files with 6 additions and 5 deletions

View File

@ -335,12 +335,13 @@ namespace CGAL {
if(!dont_triangulate)
{
for (auto h : halfedges(bbox_mesh))
std::size_t k=0;
std::array<typename boost::graph_traits<PolygonMesh>::halfedge_descriptor, 8> hfaces;
for (auto f : faces(bbox_mesh))
hfaces[k++]=halfedge(f, bbox_mesh);
for (auto h : hfaces)
{
if (is_quad(h, bbox_mesh))
CGAL::Euler::split_face(h, next(next(h, bbox_mesh), bbox_mesh), bbox_mesh);
else
CGAL_assertion(is_triangle(h, bbox_mesh));
CGAL::Euler::split_face(h, next(next(h, bbox_mesh), bbox_mesh), bbox_mesh);
}
}
CGAL::copy_face_graph(bbox_mesh, pmesh,