summaryrefslogtreecommitdiff
path: root/example.scad
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-14 05:25:55 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-14 05:25:55 (GMT)
commitf950feace3beaeec9bd5a6d6e65f7790bd80a9d8 (patch)
treec03b995d7f2589612f0cb284c59e473289313791 /example.scad
parent2bea6501b7d7be3e10dc6dae1609f80c5e542199 (diff)
Clifford Wolf:
Fixed cylinders, added "render" statement git-svn-id: http://svn.clifford.at/openscad/trunk@55 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'example.scad')
-rw-r--r--example.scad32
1 files changed, 18 insertions, 14 deletions
diff --git a/example.scad b/example.scad
index f91d22f..8c991cb 100644
--- a/example.scad
+++ b/example.scad
@@ -86,21 +86,26 @@ module test005()
module test006()
{
- $fa = 30;
+ module edgeprofile()
+ {
+ render() difference() {
+ cube([20 20 150], center = true);
+ translate([-10 -10 0])
+ cylinder(h = 150, r = 10, center = true);
+ }
+ }
+
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 (rot = [ [0 0 0], [1 0 0], [0 1 0] ]) {
+ rotate(90, rot)
+ for (p = [[+1 +1 0], [-1 +1 90], [-1 -1 180], [+1 -1 270]]) {
+ translate([ p[0]*50, p[1]*50, 0 ])
+ rotate(p[2], [0 0 1])
+ edgeprofile();
+ }
+ }
for (i = [
[ 0, 0, [ [0 0] ] ],
[ 90, 0, [ [-20 -20], [+20 +20] ] ],
@@ -116,5 +121,4 @@ module test006()
}
}
-test001();
-
+test006();
contact: Jan Huwald // Impressum