summaryrefslogtreecommitdiff
path: root/cube.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-06-21 12:43:52 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-06-21 12:43:52 (GMT)
commit1f08d77f548ed12186523e8e47f62441730ef985 (patch)
treeb9190fb4773899404c7f51692a9478ab06914aef /cube.cc
parente24a87b8a37b8f71be30d99251908a5d80bb8bc7 (diff)
Clifford Wolf:
CSG Evaluation now functional git-svn-id: http://svn.clifford.at/openscad/trunk@7 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'cube.cc')
-rw-r--r--cube.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/cube.cc b/cube.cc
index 83a07b9..7840c63 100644
--- a/cube.cc
+++ b/cube.cc
@@ -60,13 +60,16 @@ void register_builtin_cube()
CGAL_Nef_polyhedron CubeNode::render_cgal_nef_polyhedron() const
{
- CGAL_Nef_polyhedron N1(CGAL_Plane(+1, 0, 0, -x/2));
+ CGAL_Plane P1 = CGAL_Plane(+1, 0, 0, -x/2);
+ CGAL_Nef_polyhedron N1(P1);
CGAL_Nef_polyhedron N2(CGAL_Plane(-1, 0, 0, -x/2));
CGAL_Nef_polyhedron N3(CGAL_Plane( 0, +1, 0, -y/2));
CGAL_Nef_polyhedron N4(CGAL_Plane( 0, -1, 0, -y/2));
CGAL_Nef_polyhedron N5(CGAL_Plane( 0, 0, +1, -z/2));
CGAL_Nef_polyhedron N6(CGAL_Plane( 0, 0, -1, -z/2));
- return N1 * N2 * N3 * N4 * N5 * N6;
+ CGAL_Nef_polyhedron N = N1 * N2 * N3 * N4 * N5 * N6;
+ progress_report();
+ return N;
}
QString CubeNode::dump(QString indent) const
contact: Jan Huwald // Impressum