summaryrefslogtreecommitdiff
path: root/Optokopplerhalterung.scad
diff options
context:
space:
mode:
Diffstat (limited to 'Optokopplerhalterung.scad')
-rw-r--r--Optokopplerhalterung.scad8
1 files changed, 4 insertions, 4 deletions
diff --git a/Optokopplerhalterung.scad b/Optokopplerhalterung.scad
index b1729ce..2115720 100644
--- a/Optokopplerhalterung.scad
+++ b/Optokopplerhalterung.scad
@@ -22,7 +22,7 @@ module Wabe(x,y,d,a) {
cube([x,y,d]);
for (dy=[0:2*y/(sqrt(3)*a)])
for (dx=[0:3*a:x])
- translate([dx+(dy%2 == 1 ? 3/2*a : 0),dy*sqrt(3)/2*a,0])
+ translate([a+dx+(dy%2 == 1 ? 3/2*a : 0),a+dy*sqrt(3)/2*a,0])
Sechseck(a,d);
}
}
@@ -32,12 +32,12 @@ module Rahmen(x,y,z,d) {
cube([x,y,z]);
for (f=[[-1,1,1],[1,-1,1],[1,1,-1]])
translate([f[0]*d,f[1]*d,f[2]*d])
- cube([x-f[0]*2*d,y-f[1]*2*d,z-f[2]*2*d]);
+ cube([x-f[0]*2*d,y-f[1]*2*d,z]);
};
Wabe(x,y,d,a);
for (i = [0:1])
- translate([d+(x-d)*i,0,0])
- rotate([0,-90,0])
+ translate([(x-d)*i,0,z])
+ rotate([0,90,0])
Wabe(z,y,d,a);
for (i = [0:1])
translate([0,d+(y-d)*i,z])