Ignore dimension when evaluating control modules mixed with geometry children. Fixes #229

felipesanches-svg
Marius Kintel 2012-12-27 17:30:13 +01:00
parent ffae0bb3a5
commit bc7ff5aa8d
6 changed files with 10 additions and 0 deletions

View File

@ -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;
}

View File

@ -0,0 +1,4 @@
hull() {
circle(1);
echo(1);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -0,0 +1,5 @@
hull() {
circle($fn = 0, $fa = 12, $fs = 2, r = 1);
group();
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB