summaryrefslogtreecommitdiff
path: root/src/CGAL_Nef_polyhedron.cc
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-11-27 04:21:38 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-11-27 04:21:38 (GMT)
commit610ab20ddba6d07e9b6e0b7565a44913854e467b (patch)
tree81c75e9ce9b68490bc5a81293290b96bb49d9510 /src/CGAL_Nef_polyhedron.cc
parent2376814f2c4dd6e34a765ca37275b136785b26fd (diff)
parent04c340b35d8809b595ebb3ce53b7a00313d00a9b (diff)
Merge remote branch 'upstream/master' into cakebaby
Conflicts: doc/testing.txt tests/CMakeLists.txt tests/system-gl.cc tests/system-gl.h
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