summaryrefslogtreecommitdiff
path: root/src/CGAL_Nef_polyhedron.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-11-26 22:31:11 (GMT)
committerMarius Kintel <marius@kintel.net>2011-11-26 22:31:11 (GMT)
commit47bd0b639b4adf4a20f901bd93ac235e77bd2df4 (patch)
tree4f980b1d7cb32a6c87df31f0904196e69b42e2ea /src/CGAL_Nef_polyhedron.cc
parentc6a6ad46da7cb349422eefbec6bf37a55e9f8cc5 (diff)
bugfix: We didn't correctly set back CGAL error behaviour after changing it
Diffstat (limited to 'src/CGAL_Nef_polyhedron.cc')
-rw-r--r--src/CGAL_Nef_polyhedron.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/CGAL_Nef_polyhedron.cc b/src/CGAL_Nef_polyhedron.cc
index 2538b64..61ca2f8 100644
--- a/src/CGAL_Nef_polyhedron.cc
+++ b/src/CGAL_Nef_polyhedron.cc
@@ -7,6 +7,29 @@
#include "dxftess.h"
#include <CGAL/minkowski_sum_3.h>
+CGAL_Nef_polyhedron::CGAL_Nef_polyhedron(CGAL_Nef_polyhedron2 *p)
+{
+ if (p) {
+ dim = 2;
+ p2.reset(p);
+ }
+ else {
+ dim = 0;
+ }
+}
+
+CGAL_Nef_polyhedron::CGAL_Nef_polyhedron(CGAL_Nef_polyhedron3 *p)
+{
+ if (p) {
+ dim = 3;
+ p3.reset(p);
+ }
+ else {
+ dim = 0;
+ }
+}
+
+
CGAL_Nef_polyhedron& CGAL_Nef_polyhedron::operator+=(const CGAL_Nef_polyhedron &other)
{
if (this->dim == 2) (*this->p2) += (*other.p2);
contact: Jan Huwald // Impressum