diff options
author | xengineering <me@xengineering.eu> | 2023-12-23 17:02:51 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-01-02 14:24:06 +0100 |
commit | 9f92a24358c8f5cca2105945d3371dc1f84de3f5 (patch) | |
tree | 87ff24aa484b1cefda29e145ee967abb12141cf2 /mech/pcb_case/nut.scad | |
parent | 5f0b6e8bf4285c9945bccc69dc23fa020a51fcea (diff) | |
download | soundbox-9f92a24358c8f5cca2105945d3371dc1f84de3f5.tar soundbox-9f92a24358c8f5cca2105945d3371dc1f84de3f5.tar.zst soundbox-9f92a24358c8f5cca2105945d3371dc1f84de3f5.zip |
mech: pcb_case: Move tolerance test for nut to own file
That way it is easier to get that the test is built and not nut when
building the corresponding file.
Diffstat (limited to 'mech/pcb_case/nut.scad')
-rw-r--r-- | mech/pcb_case/nut.scad | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/mech/pcb_case/nut.scad b/mech/pcb_case/nut.scad index 407ab09..b7916d3 100644 --- a/mech/pcb_case/nut.scad +++ b/mech/pcb_case/nut.scad @@ -6,25 +6,3 @@ nut_d_tol = 0.5; module nut() { cylinder(d=nut_d,h=nut_h); } - -module nut_tolerance_test() { - steps = 3; - step_width = 0.1; - - for(i = [-steps : steps]) { - tol = nut_d_tol + i * step_width; - 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); - translate([0,0,nut_h]) - cylinder(d=nut_d_tol+nut_d,h=nut_h,$fn=50); - } - } - } - } -} - -nut_tolerance_test(); |