summaryrefslogtreecommitdiff
path: root/example.scad
diff options
context:
space:
mode:
Diffstat (limited to 'example.scad')
-rw-r--r--example.scad32
1 files changed, 32 insertions, 0 deletions
diff --git a/example.scad b/example.scad
index c55798a..f91d22f 100644
--- a/example.scad
+++ b/example.scad
@@ -84,5 +84,37 @@ module test005()
}
}
+module test006()
+{
+ $fa = 30;
+ difference()
+ {
+ cube(100, center = true);
+// for (rot = [ [0 0 0], [1 0 0], [0 1 0] ]) {
+// rotate(90, rot)
+// for (x = [-1, +1], y = [-1, +1]) {
+// difference() {
+// translate([ x*50, y*50, 0 ])
+// cube([20 20 150], center = true);
+// translate([ x*40, y*40, 0 ])
+// cylinder(h = 150, r = 10, center = true);
+// }
+// }
+// }
+ for (i = [
+ [ 0, 0, [ [0 0] ] ],
+ [ 90, 0, [ [-20 -20], [+20 +20] ] ],
+ [ 180, 0, [ [-20 -30], [-20 0], [-20 +30], [+20 -30], [+20 0], [+20 +30] ] ],
+ [ 270, 0, [ [0 0], [-30 -30], [+30 -30], [-30 +30], [+30 +30] ] ],
+ [ 0, 90, [ [-30 -30], [0 0], [+30 +30] ] ],
+ [ 0, -90, [ [-25 -25], [+25 -25], [-25 +25], [+25 +25] ] ]
+ ]) {
+ rotate(i[0], [0 0 1]) rotate(i[1], [1 0 0]) translate([0 -50 0])
+ for (j = i[2])
+ translate([j[0], 0, j[1]]) sphere(10);
+ }
+ }
+}
+
test001();
contact: Jan Huwald // Impressum