summaryrefslogtreecommitdiff
path: root/polyset.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-12-27 23:49:27 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-12-27 23:49:27 (GMT)
commitf7799a8e4ea0c31bd284dc4cf5e2d23b13029a4c (patch)
tree608ae6c2f862db9d60ad3d9310645d8ef4fb319b /polyset.cc
parent612f04dfdf6378dcae3ca3de4d445ffbe53e1c75 (diff)
Clifford Wolf:
Added CGAL Nef Polyhedron 2D/3D abstraction git-svn-id: http://svn.clifford.at/openscad/trunk@187 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'polyset.cc')
-rw-r--r--polyset.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/polyset.cc b/polyset.cc
index b3bd7c2..467b096 100644
--- a/polyset.cc
+++ b/polyset.cc
@@ -290,8 +290,8 @@ CGAL_Nef_polyhedron PolySet::render_cgal_nef_polyhedron() const
#if 0
std::cout << P;
#endif
- CGAL_Nef_polyhedron N(P);
- return N;
+ CGAL_Nef_polyhedron3 N(P);
+ return CGAL_Nef_polyhedron(N);
}
#endif /* ENABLE_CGAL */
@@ -314,7 +314,7 @@ CGAL_Nef_polyhedron AbstractPolyNode::render_cgal_nef_polyhedron() const
PolySet *ps = render_polyset(RENDER_CGAL);
CGAL_Nef_polyhedron N = ps->render_cgal_nef_polyhedron();
- cgal_nef_cache.insert(cache_id, new CGAL_Nef_polyhedron(N), N.number_of_vertices());
+ cgal_nef_cache.insert(cache_id, new CGAL_Nef_polyhedron(N), N.weight());
progress_report();
ps->unlink();
return N;
contact: Jan Huwald // Impressum