summaryrefslogtreecommitdiff
path: root/testdata/scad/features/projection-tests.scad
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2013-11-30 21:30:40 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2013-11-30 21:30:40 (GMT)
commit75692592e49da1af2b1c8857298ca7085cd5b3d5 (patch)
tree33e5ee1aae1b9eb4514d735f00281a21f17325a0 /testdata/scad/features/projection-tests.scad
parentfd715c6526e961cb7f3d6ba6a0563788d7d1674d (diff)
parentf175bae46a8f15823780c5a9c89b11476acb3107 (diff)
Merge branch 'master' into issue410x
Diffstat (limited to 'testdata/scad/features/projection-tests.scad')
-rw-r--r--testdata/scad/features/projection-tests.scad28
1 files changed, 18 insertions, 10 deletions
diff --git a/testdata/scad/features/projection-tests.scad b/testdata/scad/features/projection-tests.scad
index bc2111c..27d03fe 100644
--- a/testdata/scad/features/projection-tests.scad
+++ b/testdata/scad/features/projection-tests.scad
@@ -3,17 +3,25 @@ projection();
// No children
projection() { }
// 2D child
-projection(cut=true) { square(); }
+projection() { square(); }
+// Simple
projection(cut=false) cube(10);
-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); }
- }
+// Two children
+translate([-12,0]) projection(cut=false) {
+ cube(10);
+ difference() {
+ sphere(10);
+ cylinder(h=30, r=5, center=true);
+ }
+}
+
+// Holes
+translate([6,-12]) projection(cut=false) {
+ cube(10);
+ difference() {
+ sphere(10);
+ cylinder(h=30, r=5, center=true);
+ }
}
contact: Jan Huwald // Impressum