summaryrefslogtreecommitdiff
path: root/src/CGALEvaluator.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-12-27 16:30:13 (GMT)
committerMarius Kintel <marius@kintel.net>2012-12-27 16:30:13 (GMT)
commitbc7ff5aa8d73ff08bd847bc8d0f41dc26deee54e (patch)
treee71160704ffa4ec9d3a670c3c4324b1582ccf2b0 /src/CGALEvaluator.cc
parentffae0bb3a5797aefcb5fc701ad8084d406f2a9e3 (diff)
Ignore dimension when evaluating control modules mixed with geometry children. Fixes #229
Diffstat (limited to 'src/CGALEvaluator.cc')
-rw-r--r--src/CGALEvaluator.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CGALEvaluator.cc b/src/CGALEvaluator.cc
index 5e16892..a4744c2 100644
--- a/src/CGALEvaluator.cc
+++ b/src/CGALEvaluator.cc
@@ -130,6 +130,7 @@ CGAL_Nef_polyhedron CGALEvaluator::applyHull(const CgaladvNode &node)
const CGAL_Nef_polyhedron &chN = item.second;
// FIXME: Don't use deep access to modinst members
if (chnode->modinst->isBackground()) continue;
+ if (chN.dim == 0) continue; // Ignore object with dimension 0 (e.g. echo)
if (dim == 0) {
dim = chN.dim;
}
contact: Jan Huwald // Impressum