diff options
author | xengineering <me@xengineering.eu> | 2023-12-23 17:19:05 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-01-02 14:24:06 +0100 |
commit | f5df6f77f0b90832a83191f7975ac2b1134769e5 (patch) | |
tree | cd0d1d11fe6f28bf5e08b701356f15f786390bd1 /mech | |
parent | 9f92a24358c8f5cca2105945d3371dc1f84de3f5 (diff) | |
download | soundbox-f5df6f77f0b90832a83191f7975ac2b1134769e5.tar soundbox-f5df6f77f0b90832a83191f7975ac2b1134769e5.tar.zst soundbox-f5df6f77f0b90832a83191f7975ac2b1134769e5.zip |
mech: pcb_case: Fix nut_tolerance_test.scad
The holes used to be all the same size. This is clearly a bug since the
test's intention is to check different sizes.
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); } } } |