Rev | Author | Line No. | Line |
---|---|---|---|
3876 | kaklik | 1 | use <library.scad> |
2 | |||
3 | a = 10.16; |
||
4 | d = 1.6; |
||
5 | thickness = 2; |
||
6 | |||
7 | |||
8 | translate([0,a,0]){hole(a,d,thickness);} |
||
9 | translate([0,-a,0]){hole(a,d,thickness);} |
||
10 | for(i=[0:5]){ |
||
11 | translate([a*i,0,0]){hole(a,d,thickness);} |
||
12 | } |
||
13 | |||
14 | |||
15 | module hole(a,d,thickness){ |
||
16 | difference(){ |
||
17 | translate([0,0,thickness/2]){cube([a,a,thickness],center=true);} |
||
18 | translate([0,0,thickness/2]){cylinder(h=thickness*2,r=d,$fn=100,center=true);} |
||
19 | } |
||
20 | |||
21 | } |