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() {
|
Polyhedron get_intersection() {
|
||||||
|
if (queue.empty())
|
||||||
|
return empty;
|
||||||
while(queue.size() > 1)
|
while(queue.size() > 1)
|
||||||
intersect();
|
intersect();
|
||||||
inserted = 0;
|
inserted = 0;
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,8 @@ class Nef_nary_union_3 {
|
||||||
}
|
}
|
||||||
|
|
||||||
Polyhedron get_union() {
|
Polyhedron get_union() {
|
||||||
|
if (queue.empty())
|
||||||
|
return empty;
|
||||||
while(queue.size() > 1)
|
while(queue.size() > 1)
|
||||||
unite();
|
unite();
|
||||||
inserted = 0;
|
inserted = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue