blob: b65818306d8610e6da822979a3b46b9e21a94413 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
include <bolt.scad>
module bolt_tolerance_test() {
steps = 3;
step_width = 0.1;
height = 3;
for(i = [-steps : steps]) {
tol = bolt_ds_tol + i * step_width;
echo(tol=tol);
translate([i*5*bolt_ds,0,0])
difference() {
cube([5*bolt_ds, 5*bolt_ds, height]);
translate([2.5*bolt_ds,2.5*bolt_ds,0]) {
cylinder(d=bolt_ds+tol,h=height,$fn=50);
}
}
}
}
bolt_tolerance_test();
|