diff options
Diffstat (limited to 'mech')
| -rw-r--r-- | mech/pcb_case/bolt.scad | 2 | ||||
| -rw-r--r-- | mech/pcb_case/nut_tolerance_test.scad | 6 | 
2 files changed, 4 insertions, 4 deletions
diff --git a/mech/pcb_case/bolt.scad b/mech/pcb_case/bolt.scad index 0a2f8a0..4fbd349 100644 --- a/mech/pcb_case/bolt.scad +++ b/mech/pcb_case/bolt.scad @@ -4,5 +4,3 @@ bolt_r = bolt_d / 2;  module bolt() {  	cylinder(d=bolt_d,h=5);  // TODO height is not considered at the moment  } - -bolt(); 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);  					}  				}  			}  | 
