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
|
use <rounded_cube.scad>
t = 2;
current_tol = 0.4;
height = 2*t;
module panel_thickness_tolerance_test() {
steps = 3;
step_width = 0.2;
for(i = [-steps : steps]) {
tol = current_tol + i * step_width;
echo(tol=tol);
translate([i*5*t,0,0])
difference() {
cube([5*t, 5*t, height]);
translate([2*t, 0, t]) {
cube([t+tol, 5*t, t]);
}
}
}
}
panel_thickness_tolerance_test();
translate([0, 6*t, 0]) rotate([0, -90, 0]) rounded_cube([t, 4*t, 7*t], t);
|