mirror of https://github.com/CGAL/cgal
Nef_3: Fix in nary functions
This commit is contained in:
parent
9865aae71a
commit
7b09c8e5ea
|
|
@ -38,7 +38,9 @@ Nef_nary_union_3<NefPolyhedron_3>();
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
returns the union of the polyhedra previously added to the class.
|
returns the union of the polyhedra previously added to the class. The
|
||||||
|
union does not get removed so that further Nef polyhedra can be added
|
||||||
|
later.
|
||||||
*/
|
*/
|
||||||
NefPolyhedron_3 get_union() const;
|
NefPolyhedron_3 get_union() const;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ class Nef_nary_intersection_3 {
|
||||||
return empty;
|
return empty;
|
||||||
while(queue.size() > 1)
|
while(queue.size() > 1)
|
||||||
intersect();
|
intersect();
|
||||||
inserted = 0;
|
inserted = 1;
|
||||||
return queue.front();
|
return queue.front();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ class Nef_nary_union_3 {
|
||||||
return empty;
|
return empty;
|
||||||
while(queue.size() > 1)
|
while(queue.size() > 1)
|
||||||
unite();
|
unite();
|
||||||
inserted = 0;
|
inserted = 1;
|
||||||
return queue.front();
|
return queue.front();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue