diff options
author | Marius Kintel <marius@kintel.net> | 2011-09-01 18:03:35 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-09-01 18:03:35 (GMT) |
commit | c5758fbbfc13f3cf098bc74acdd1154bcab55cb7 (patch) | |
tree | e2e5f1e1b521a737bca7201c04807550ff3f21f9 /src/CGAL_Nef_polyhedron.h | |
parent | 6041c34f0b458b3cb791a0e15b0f01bf3142981c (diff) |
bugfixes after refactoring
Diffstat (limited to 'src/CGAL_Nef_polyhedron.h')
-rw-r--r-- | src/CGAL_Nef_polyhedron.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/CGAL_Nef_polyhedron.h b/src/CGAL_Nef_polyhedron.h index 0ab72d7..9cac629 100644 --- a/src/CGAL_Nef_polyhedron.h +++ b/src/CGAL_Nef_polyhedron.h @@ -8,20 +8,22 @@ class CGAL_Nef_polyhedron { public: - CGAL_Nef_polyhedron() : dim(0) {} - CGAL_Nef_polyhedron(CGAL_Nef_polyhedron2 *p) : dim(2), p2(p) {} - CGAL_Nef_polyhedron(CGAL_Nef_polyhedron3 *p) : dim(3), p3(p) { } + CGAL_Nef_polyhedron() : dim(0), p2(0), p3(0) {} + CGAL_Nef_polyhedron(CGAL_Nef_polyhedron2 *p) : dim(2), p2(p), p3(0) {} + CGAL_Nef_polyhedron(CGAL_Nef_polyhedron3 *p) : dim(3), p2(0), p3(p) {} ~CGAL_Nef_polyhedron() {} 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); CGAL_Nef_polyhedron &minkowski(const CGAL_Nef_polyhedron &other); + CGAL_Nef_polyhedron copy() const; int weight() const; class PolySet *convertToPolyset(); class DxfData *convertToDxfData() const; int dim; + // FIXME: Define ownership of the CGAL objects, e.g. use reference-counted smart pointers CGAL_Nef_polyhedron2 *p2; CGAL_Nef_polyhedron3 *p3; }; |