-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEurorack_Frontplate_Template_v1.scad
62 lines (44 loc) · 1.3 KB
/
Eurorack_Frontplate_Template_v1.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
eurorack frontplate template
*/
$fn=60;
// fixed variables
hpwidthmm=5.08;
1u=42.83;
3u=128.5;
// size variables
heightmm=3u;
widthhp=12;
spacingmm=5;
amount=2;
// hole size variables
holeDiameter=3.2;
holeToEdgemm=1.5+3.2/2;
oblongHoleWidth=6.4;
// code
widthmm=widthhp*hpwidthmm;
translate([widthmm/2,heightmm/2])
for (i = [0:amount-1])
{
translate([i*(widthmm+spacingmm),0])
difference()
{
square([widthmm,heightmm],center=true);
hull(){
translate([widthmm/2-holeToEdgemm-(oblongHoleWidth-holeDiameter),heightmm/2-holeToEdgemm])circle(r=holeDiameter/2);
translate([widthmm/2-holeToEdgemm,heightmm/2-holeToEdgemm])circle(r=holeDiameter/2);
}
hull(){
translate([-(widthmm/2-holeToEdgemm),heightmm/2-holeToEdgemm])circle(r=holeDiameter/2);
translate([-(widthmm/2-holeToEdgemm-(oblongHoleWidth-holeDiameter)),heightmm/2-holeToEdgemm])circle(r=holeDiameter/2);
}
hull(){
translate([-(widthmm/2-holeToEdgemm),-(heightmm/2-holeToEdgemm)])circle(r=holeDiameter/2);
translate([-(widthmm/2-holeToEdgemm-(oblongHoleWidth-holeDiameter)),-(heightmm/2-holeToEdgemm)])circle(r=holeDiameter/2);
}
hull(){
translate([widthmm/2-holeToEdgemm-(oblongHoleWidth-holeDiameter),-(heightmm/2-holeToEdgemm)])circle(r=holeDiameter/2);
translate([widthmm/2-holeToEdgemm,-(heightmm/2-holeToEdgemm)])circle(r=holeDiameter/2);
}
}
}