diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/bbox.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/bbox.h index 813c6a3ef8e..aa80a4b4f0c 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/bbox.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/bbox.h @@ -19,7 +19,7 @@ #include #include -#include +#include #include #include @@ -325,8 +325,15 @@ namespace CGAL { bbox_mesh); if(!dont_triangulate) - CGAL::Polygon_mesh_processing::triangulate_faces(bbox_mesh); - + { + for (auto h : halfedges(bbox_mesh)) + { + 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::copy_face_graph(bbox_mesh, pmesh, parameters::default_values(), np);