-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdual_meters.scad
52 lines (41 loc) · 862 Bytes
/
dual_meters.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
//!OpenSCAD
use <panel_common.scad>
Width_HP = 10;
jack_dia = inches(0.245);
include <front_panel_common.scad>
module cutouts() {
// top meter
translate([ x1/2 - 35.2/2, -0.1, 95]) {
cube([35.2 , 4, 20.3 ]);
}
// bottom meter
translate([ x1/2 - 35.2/2, -0.1, 45]) {
cube([35.2 , 4, 20.3 ]);
}
// left jack
translate( [x1/3 - jack_dia/2, -0.01, 20]) {
hole_for_jack();
}
// right jack
translate( [2*x1/3 + jack_dia/2, -0.01, 20]) {
hole_for_jack();
}
}
difference() {
// all the positive stuff
make_face_plate();
// cutouts
// add a second set of mounting slots if larger than 10hp
union() {
if (Width_HP <= 10) {
make_slot_pair();
} else {
union(){
make_right_slot_pair();
make_slot_pair();
}
}
cutouts();
}
echo("Final panel width: ", x1);
}