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
|
include <parameters.scad>
use <pcb_case/shell.scad>
use <pcb_case/panel.scad>
module production() {
spacing = 5;
pcb_case_shell_bottom(
dim, t, h, [
base_socket,
base_socket + dx,
base_socket + dy,
base_socket + dx + dy
]
);
translate([-spacing, 0, 0])
rotate([0, 180, 0])
translate([0, 0, -dim[2]])
pcb_case_shell_top(dim, t);
translate([-spacing, dim[1]+spacing, 0])
rotate([0, -90, 0])
translate([-t, -t, -t])
pcb_case_panel_back(pcb_dim, margins, t);
translate([dim[0], dim[1]+spacing, 0])
rotate([0, -90, 0])
translate([2*t-dim[0], -t, -t])
pcb_case_panel_front(pcb_dim, margins, t);
}
production();
|