diff options
Diffstat (limited to 'mech/pcb_case/nut_tolerance_test.scad')
-rw-r--r-- | mech/pcb_case/nut_tolerance_test.scad | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mech/pcb_case/nut_tolerance_test.scad b/mech/pcb_case/nut_tolerance_test.scad index b67166a..8d08d32 100644 --- a/mech/pcb_case/nut_tolerance_test.scad +++ b/mech/pcb_case/nut_tolerance_test.scad @@ -1,4 +1,5 @@ include <nut.scad> +include <bolt.scad> module nut_tolerance_test() { steps = 3; @@ -6,14 +7,15 @@ module nut_tolerance_test() { for(i = [-steps : steps]) { tol = nut_d_tol + i * step_width; + echo(tol=tol); translate([i*5*nut_d,0,0]) difference() { cube([5*nut_d, 5*nut_d, 2*nut_h]); translate([2.5*nut_d,2.5*nut_d,0]) { union() { - cylinder(d=nut_d,h=2*nut_h,$fn=50); + cylinder(d=bolt_d,h=2*nut_h,$fn=50); translate([0,0,nut_h]) - cylinder(d=nut_d_tol+nut_d,h=nut_h,$fn=50); + cylinder(d=tol+nut_d,h=nut_h,$fn=50); } } } |