diff options
author | Marius Kintel <marius@kintel.net> | 2011-09-06 20:01:42 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-09-06 20:01:42 (GMT) |
commit | a93e6449804e75e351ac46a84ceff8f034ddd25d (patch) | |
tree | ac6eb3dd4917f587d8808030a0c5ffc82658849e /testdata/scad/features/hull2-tests.scad | |
parent | cd6299922d7a79ab8306ed15782b6fa5b0c34c36 (diff) |
Added hull tests
Diffstat (limited to 'testdata/scad/features/hull2-tests.scad')
-rw-r--r-- | testdata/scad/features/hull2-tests.scad | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testdata/scad/features/hull2-tests.scad b/testdata/scad/features/hull2-tests.scad new file mode 100644 index 0000000..3bea3c5 --- /dev/null +++ b/testdata/scad/features/hull2-tests.scad @@ -0,0 +1,30 @@ +module convex2dSimple() { + hull() { + translate([15,10]) circle(10); + circle(10); + } +} + +module concave2dSimple() { + hull() { + translate([15,10]) square(2); + translate([15,0]) square(2); + square(2); + } +} + +// Works correctly +module convex2dHole() { + hull() { + translate([15,10,0]) circle(10); + difference() { + circle(10); + circle(5); + } + } +} + + +convex2dHole(); +translate([40,0,0]) convex2dSimple(); +translate([0,-20,0]) concave2dSimple(); |