diff options
| author | Marius Kintel <marius@kintel.net> | 2011-09-02 18:06:03 (GMT) |
|---|---|---|
| committer | Marius Kintel <marius@kintel.net> | 2011-09-02 18:06:03 (GMT) |
| commit | f1c17e791f9510111db535fd8d55699cbcff7210 (patch) | |
| tree | 8e246b9378f2c28c4ae40413649e16f8ccbda19b | |
| parent | 53725500e52725b2559444cc4b8abb2c803a49d0 (diff) | |
Added empty()
| -rw-r--r-- | src/CGAL_Nef_polyhedron.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CGAL_Nef_polyhedron.h b/src/CGAL_Nef_polyhedron.h index 9cac629..616ba23 100644 --- a/src/CGAL_Nef_polyhedron.h +++ b/src/CGAL_Nef_polyhedron.h @@ -13,6 +13,7 @@ public: CGAL_Nef_polyhedron(CGAL_Nef_polyhedron3 *p) : dim(3), p2(0), p3(p) {} ~CGAL_Nef_polyhedron() {} + bool empty() const { return (dim == 0 || !p2 && !p3); } CGAL_Nef_polyhedron &operator+=(const CGAL_Nef_polyhedron &other); CGAL_Nef_polyhedron &operator*=(const CGAL_Nef_polyhedron &other); CGAL_Nef_polyhedron &operator-=(const CGAL_Nef_polyhedron &other); |
