In Polyhedral_mesh_domain_3, add a check that the input polyhedron is

triangulated.
This commit is contained in:
Laurent Rineau 2012-01-18 11:06:11 +00:00
parent cebb7314bc
commit dbf52257f8
1 changed files with 4 additions and 0 deletions

View File

@ -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,