mirror of https://github.com/CGAL/cgal
In Polyhedral_mesh_domain_3, add a check that the input polyhedron is
triangulated.
This commit is contained in:
parent
cebb7314bc
commit
dbf52257f8
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue