summaryrefslogtreecommitdiff
path: root/csgops.cc
diff options
context:
space:
mode:
Diffstat (limited to 'csgops.cc')
-rw-r--r--csgops.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/csgops.cc b/csgops.cc
index 9087346..c6b3742 100644
--- a/csgops.cc
+++ b/csgops.cc
@@ -76,7 +76,8 @@ CGAL_Nef_polyhedron CsgNode::render_cgal_nef_polyhedron() const
continue;
if (first) {
N = v->render_cgal_nef_polyhedron();
- first = false;
+ if (N.dim != 0)
+ first = false;
} else if (N.dim == 2) {
if (type == CSG_TYPE_UNION) {
N.p2 += v->render_cgal_nef_polyhedron().p2;
contact: Jan Huwald // Impressum