diff options
author | Marius Kintel <marius@kintel.net> | 2013-05-03 02:11:23 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-05-03 02:11:23 (GMT) |
commit | c4cae2a29a7df82f4f1b43543e6b22b642a275b0 (patch) | |
tree | f13c66f1d96be5a83122cb0a62583280a70e07d3 /testdata | |
parent | 17df3f6275fce73119c311cc73a6ad057d3b47ee (diff) |
Fixes crash if hull's children are empty objects. Fixes #345
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/scad/features/hull2-tests.scad | 8 | ||||
-rw-r--r-- | testdata/scad/features/hull3-tests.scad | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/testdata/scad/features/hull2-tests.scad b/testdata/scad/features/hull2-tests.scad index e656e6a..82b56e4 100644 --- a/testdata/scad/features/hull2-tests.scad +++ b/testdata/scad/features/hull2-tests.scad @@ -31,7 +31,15 @@ module hull2dForLoop() { } } +module hull2null() { + hull() { + square(0); + circle(0); + } +} + convex2dHole(); translate([40,0,0]) convex2dSimple(); translate([0,-20,0]) concave2dSimple(); translate([30,-25,0]) hull2dForLoop(); +hull2null();
\ No newline at end of file diff --git a/testdata/scad/features/hull3-tests.scad b/testdata/scad/features/hull3-tests.scad index e3fc8e7..0f48b8f 100644 --- a/testdata/scad/features/hull3-tests.scad +++ b/testdata/scad/features/hull3-tests.scad @@ -26,3 +26,12 @@ translate([-5,-5,-5]) { } } } + +module hull3null() { + hull() { + cube(0); + sphere(0); + } +} +hull3null(); + |