From 36dd6e7bf92f15ccf7f22f79cce6f70652129436 Mon Sep 17 00:00:00 2001 From: konstantinos katrioplas Date: Tue, 27 Feb 2018 21:24:26 +0100 Subject: [PATCH] setup mech and function with hole filling --- .../Polygon_mesh_processing/triangulate_faces.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/triangulate_faces.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/triangulate_faces.h index a2094ac500d..3a3a8189ef8 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/triangulate_faces.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/triangulate_faces.h @@ -37,6 +37,7 @@ #include #include #include +#include #include #include @@ -138,9 +139,13 @@ public: } else { +#ifdef CGAL_TRIANGULATE_FACES_DO_NOT_USE_CDT + triangulate_face_with_hole_filling(f, pmesh); +#else P_traits cdt_traits(normal); CDT cdt(cdt_traits); triangulate_face_with_CDT(f, pmesh, cdt); +#endif } return true; } @@ -264,6 +269,16 @@ public: } } + bool triangulate_face_with_hole_filling(face_descriptor f, PM& pmesh) + { + + this->make_hole(halfedge(f, pmesh), pmesh); + // run and get h + // out can be a back inserter to a vector of tuples of ints + CGAL::Polygon_mesh_processing::triangulate_hole(pmesh, h, out); + // put the filling in the hole + } + template bool operator()(FaceRange face_range, PM& pmesh) {