diff options
author | Marius Kintel <marius@kintel.net> | 2011-04-28 21:37:07 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-04-28 21:37:07 (GMT) |
commit | c66f8c7b35f5e1799376f52c9fbbc0ad377b4d0b (patch) | |
tree | 6c52056f538991610c5e57b84fe353d244aad5be /testdata/scad/convex_hull.scad | |
parent | 2f740380dc407a51cff74273810104f9e21025fe (diff) | |
parent | 9ca6f0dedf65ba917319088fdd7708957e87c30c (diff) |
Merge branch 'master' into visitor
Diffstat (limited to 'testdata/scad/convex_hull.scad')
-rw-r--r-- | testdata/scad/convex_hull.scad | 44 |
1 files changed, 41 insertions, 3 deletions
diff --git a/testdata/scad/convex_hull.scad b/testdata/scad/convex_hull.scad index 8255417..3114ac5 100644 --- a/testdata/scad/convex_hull.scad +++ b/testdata/scad/convex_hull.scad @@ -1,5 +1,43 @@ -hull() { - translate([15,10,0]) - circle(10); +// Works correctly +module convex2dSimple() { + hull() { + translate([15,10]) circle(10); circle(10); + } +} + +// Works correctly +module convex2dHole() { + hull() { + translate([15,10,0]) circle(10); + difference() { + circle(10); + circle(5); + } + } +} + +// 3d not currently implemented +module convex3dSimple() { + hull() { + translate([15,10]) cylinder(r=10); + cylinder(r=10); + } +} + +// 3d not currently implemented +module convex3dHole() { + hull() { + translate([15,10,0]) cylinder(10); + difference() { + cylinder(10); + cylinder(5); + } + } } + + +convex2dHole(); +translate([40,0,0]) convex2dSimple(); +translate([0,40,0]) convex3dHole(); +translate([40,40,0]) convex3dSimple(); |