summaryrefslogtreecommitdiff
path: root/src/CGAL_Nef_polyhedron.h
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-07-20 06:49:27 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-07-20 06:49:27 (GMT)
commit4750709867e0f5743934a20250ca0990472b7a4f (patch)
tree7d930147a3123c5329c2a0f44fa7d878b5c89a25 /src/CGAL_Nef_polyhedron.h
parentc39c430ca0afd93a7b9199292fca5c613384441f (diff)
fix crashbug, rept by MichaelAtOz, issue 148. add test.
Diffstat (limited to 'src/CGAL_Nef_polyhedron.h')
-rw-r--r--src/CGAL_Nef_polyhedron.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CGAL_Nef_polyhedron.h b/src/CGAL_Nef_polyhedron.h
index 0b0784e..64ee9eb 100644
--- a/src/CGAL_Nef_polyhedron.h
+++ b/src/CGAL_Nef_polyhedron.h
@@ -14,6 +14,7 @@ public:
~CGAL_Nef_polyhedron() {}
bool empty() const { return (dim == 0 || (!p2 && !p3)); }
+ void reset() { dim=0; p2.rest(); p3.reset(); }
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);
contact: Jan Huwald // Impressum