diff options
Diffstat (limited to 'mech/pcb_case/bolt_tolerance_test.scad')
-rw-r--r-- | mech/pcb_case/bolt_tolerance_test.scad | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mech/pcb_case/bolt_tolerance_test.scad b/mech/pcb_case/bolt_tolerance_test.scad new file mode 100644 index 0000000..b658183 --- /dev/null +++ b/mech/pcb_case/bolt_tolerance_test.scad @@ -0,0 +1,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(); |