summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-02 12:46:45 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-02 12:46:45 (GMT)
commita1e452472a8cc71c8a8337ed1a8f54e517b48a04 (patch)
treea2c57ae509ba83d1fae85526c12c17f8bd16261e /testdata
parenta20c08b8cea3832a8c99eeecc8d3f66cdbb6c85d (diff)
Added intersection-tests
Diffstat (limited to 'testdata')
-rw-r--r--testdata/scad/features/intersection-tests.scad35
1 files changed, 33 insertions, 2 deletions
diff --git a/testdata/scad/features/intersection-tests.scad b/testdata/scad/features/intersection-tests.scad
index 4101b03..f673b35 100644
--- a/testdata/scad/features/intersection-tests.scad
+++ b/testdata/scad/features/intersection-tests.scad
@@ -1,4 +1,35 @@
intersection() {
- sphere(3);
- cube([3,3,8], center=true);
+ sphere(r=5);
+ translate([0,0,3]) cube([4,4,6], center=true);
+}
+
+translate([0,12,0]) intersection() {
+ cube([10,10,10], center=true);
+ cylinder(r=4, h=12, center=true);
+}
+
+translate([12,0,0]) intersection() {
+ cube([10,10,10], center=true);
+ cylinder(r=4, h=12, center=true);
+ rotate([0,90,0]) cylinder(r=4, h=12, center=true);
+}
+
+translate([12,12,0]) intersection() {
+ cube([10,10,10], center=true);
+ translate([0,0,7]) cylinder(r=4, h=4, center=true);
+}
+
+translate([24,0,0]) intersection() {
+ cube([10,10,10], center=true);
+ translate([0,0,6.99]) cylinder(r=4, h=4, center=true);
+}
+
+translate([-12,0,0]) intersection() {
+ cube([10,10,10], center=true);
+ translate([0,-10,-10]) cube([10,10,10], center=true);
+}
+
+translate([-12,12,0]) intersection() {
+ cube([10,10,10], center=true);
+ translate([0,-9.99,-9.99]) cube([10,10,10], center=true);
}
contact: Jan Huwald // Impressum