From dbf52257f89c2f728db9ed008499a417b7f93a39 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Wed, 18 Jan 2012 11:06:11 +0000 Subject: [PATCH] In Polyhedral_mesh_domain_3, add a check that the input polyhedron is triangulated. --- Mesh_3/include/CGAL/Polyhedral_mesh_domain_3.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mesh_3/include/CGAL/Polyhedral_mesh_domain_3.h b/Mesh_3/include/CGAL/Polyhedral_mesh_domain_3.h index e041e3420e1..c86af513ea5 100644 --- a/Mesh_3/include/CGAL/Polyhedral_mesh_domain_3.h +++ b/Mesh_3/include/CGAL/Polyhedral_mesh_domain_3.h @@ -203,6 +203,10 @@ public: TriangleAccessor().triangles_end(p)), bounding_tree_(&tree_) // the bounding tree is tree_ { + if(!p.is_pure_triangle()) { + std::cerr << "Your input polyhedron must be triangulated!\n"; + CGAL_error_msg("Your input polyhedron must be triangulated!"); + } } Polyhedral_mesh_domain_3(const Polyhedron& p,