summaryrefslogtreecommitdiff
path: root/mech/pcb_case/panel.scad
blob: 2670c7a3342e41e384a14e823b67aff2c8928d60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use <rounded_cube.scad>

panel_dim_0_tol = 0.3;
panel_dim_1_2_tol = 0.45;

module pcb_case_panel(dim, t) {
	rounded_cube([t,dim[1]-2*t,dim[2]-2*t], t);
}

module pcb_case_panel_back(dim, t) {
	translate([t,t,t])
		pcb_case_panel(dim, t);
}

module pcb_case_panel_front(dim, t) {
	translate([dim[0]-2*t,t,t])
		pcb_case_panel(dim, t);
}