From 56af55ecd434b2c6a44bc86a966042e041c442a3 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Thu, 27 Aug 2020 13:46:04 +0200 Subject: [PATCH] Fix bug in mesh_3 tests --- .../CGAL/Mesh_3/Mesh_complex_3_in_triangulation_3_fwd.h | 6 +++++- Mesh_3/include/CGAL/Mesh_3/tet_soup_to_c3t3.h | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Installation/include/CGAL/Mesh_3/Mesh_complex_3_in_triangulation_3_fwd.h b/Installation/include/CGAL/Mesh_3/Mesh_complex_3_in_triangulation_3_fwd.h index 2f4705e66d0..d6852a072f2 100644 --- a/Installation/include/CGAL/Mesh_3/Mesh_complex_3_in_triangulation_3_fwd.h +++ b/Installation/include/CGAL/Mesh_3/Mesh_complex_3_in_triangulation_3_fwd.h @@ -24,8 +24,12 @@ class Mesh_complex_3_in_triangulation_3; template bool build_triangulation_from_file(std::istream& is, - Tr& tr); + Tr& tr, + bool prevent_domain_0); +template +bool build_triangulation_from_file(std::istream& is, + Tr& tr); } // CGAL #endif diff --git a/Mesh_3/include/CGAL/Mesh_3/tet_soup_to_c3t3.h b/Mesh_3/include/CGAL/Mesh_3/tet_soup_to_c3t3.h index ed43decbe56..b928aa3801f 100644 --- a/Mesh_3/include/CGAL/Mesh_3/tet_soup_to_c3t3.h +++ b/Mesh_3/include/CGAL/Mesh_3/tet_soup_to_c3t3.h @@ -404,7 +404,7 @@ bool build_triangulation(Tr& tr, template bool build_triangulation_from_file(std::istream& is, Tr& tr, - bool prevent_domain_0 = true) + bool prevent_domain_0) { typedef typename Tr::Point Point_3; @@ -497,6 +497,12 @@ bool build_triangulation_from_file(std::istream& is, return is_well_built; } +template +bool build_triangulation_from_file(std::istream& is, + Tr& tr) +{ + return build_triangulation_from_file(is, tr, true); +} } // namespace CGAL #include