From 7b09c8e5ead56e38a0e24c7643c9658bc5815355 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Tue, 2 Aug 2022 17:37:38 +0100 Subject: [PATCH] Nef_3: Fix in nary functions --- Nef_3/doc/Nef_3/CGAL/Nef_nary_union_3.h | 4 +++- Nef_3/include/CGAL/Nef_nary_intersection_3.h | 2 +- Nef_3/include/CGAL/Nef_nary_union_3.h | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Nef_3/doc/Nef_3/CGAL/Nef_nary_union_3.h b/Nef_3/doc/Nef_3/CGAL/Nef_nary_union_3.h index 1e271711d07..3919d156f76 100644 --- a/Nef_3/doc/Nef_3/CGAL/Nef_nary_union_3.h +++ b/Nef_3/doc/Nef_3/CGAL/Nef_nary_union_3.h @@ -38,7 +38,9 @@ Nef_nary_union_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; diff --git a/Nef_3/include/CGAL/Nef_nary_intersection_3.h b/Nef_3/include/CGAL/Nef_nary_intersection_3.h index 5178705dc2f..212aeeaa990 100644 --- a/Nef_3/include/CGAL/Nef_nary_intersection_3.h +++ b/Nef_3/include/CGAL/Nef_nary_intersection_3.h @@ -56,7 +56,7 @@ class Nef_nary_intersection_3 { return empty; while(queue.size() > 1) intersect(); - inserted = 0; + inserted = 1; return queue.front(); } }; diff --git a/Nef_3/include/CGAL/Nef_nary_union_3.h b/Nef_3/include/CGAL/Nef_nary_union_3.h index c8663bb911b..8b138bac28d 100644 --- a/Nef_3/include/CGAL/Nef_nary_union_3.h +++ b/Nef_3/include/CGAL/Nef_nary_union_3.h @@ -56,7 +56,7 @@ class Nef_nary_union_3 { return empty; while(queue.size() > 1) unite(); - inserted = 0; + inserted = 1; return queue.front(); } };