mirror of https://github.com/CGAL/cgal
Don't segfault on empty Nef_nary_x
This commit is contained in:
parent
6b679968c6
commit
a86712d1aa
|
|
@ -52,7 +52,8 @@ class Nef_nary_intersection_3 {
|
|||
}
|
||||
|
||||
Polyhedron get_intersection() {
|
||||
|
||||
if (queue.empty())
|
||||
return empty;
|
||||
while(queue.size() > 1)
|
||||
intersect();
|
||||
inserted = 0;
|
||||
|
|
|
|||
|
|
@ -52,7 +52,8 @@ class Nef_nary_union_3 {
|
|||
}
|
||||
|
||||
Polyhedron get_union() {
|
||||
|
||||
if (queue.empty())
|
||||
return empty;
|
||||
while(queue.size() > 1)
|
||||
unite();
|
||||
inserted = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue