summaryrefslogtreecommitdiff
path: root/mech/pcb_case/panel_size_tolerance_test.scad
blob: 8a0b20b63c9bfb58ab86d04e92d741fff096da13 (plain)
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
use <rounded_cube.scad>

t = 2;
t_tol = 0.4;
current_tol = 0.8;
height = 3*t;

module panel_size_tolerance_test() {
	steps = 3;
	step_width = 0.2;

	for(i = [-steps : steps]) {
		tol = current_tol + i * step_width;
		echo(tol=tol);
		translate([i*3*t,0,0])
			difference() {
				cube([3*t, 8*t, height]);
				translate([t, t-tol/2, t]) {
					rounded_cube([t, 6*t+tol, 6*t+tol], t);
				}
			}
	}
}

panel_size_tolerance_test();
translate([0, 9*t, 0]) rotate([0, -90, 0]) rounded_cube([t, 6*t, 6*t], t);