From f1c17e791f9510111db535fd8d55699cbcff7210 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Fri, 2 Sep 2011 20:06:03 +0200 Subject: Added empty() 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); -- cgit v0.10.1