diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2013-11-30 21:00:35 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2013-11-30 21:00:35 (GMT) |
commit | 31199ea2d1f1a9ce2de763ca57fb0aa172cc1f66 (patch) | |
tree | 2dcb07e7c91e77bfd1d7caec7e6b91a33030ecf5 /testdata/scad/features/projection-cut-tests.scad | |
parent | 6f6a8dff7669322a35ddc33ad195f2cb3de45de8 (diff) | |
parent | 961c380c840882da246aad1c30928f106aea8747 (diff) |
Merge branch 'master' of github.com:openscad/openscad
Diffstat (limited to 'testdata/scad/features/projection-cut-tests.scad')
-rw-r--r-- | testdata/scad/features/projection-cut-tests.scad | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testdata/scad/features/projection-cut-tests.scad b/testdata/scad/features/projection-cut-tests.scad new file mode 100644 index 0000000..0409a3e --- /dev/null +++ b/testdata/scad/features/projection-cut-tests.scad @@ -0,0 +1,15 @@ +// 2D child +projection(cut=true) { square(); } + +projection(cut=true) translate([20,0,0]) cube(10, center=true); + +// Boundary case: clipping the top of a cube +translate([0,20,0]) projection(cut=true) translate([0,0,-4.999999]) cube(10, center=true); + +// holes +translate([0,-10,0]) projection(cut=true) { + union() { + difference() { cube(5,center=true); cube(4,center=true); } + translate([2.1,2.1]) difference() { cube(5,center=true); cube(4,center=true); } + } +} |