chiark / gitweb /
fairphone-case: rework hingescrew parameters: introduce hingescrew_fasteners_extra_th...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 30 Jan 2018 13:22:43 +0000 (13:22 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 30 Jan 2018 13:22:45 +0000 (13:22 +0000)
and introduce hex27 too

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index 1e11f3f80e4ae00d9ccb305422cf0591d2e3b594..ba9c52ca33935082323eab17b74c3f0e64f415ef 100644 (file)
@@ -79,6 +79,7 @@ foldover_lever_gap = 0.50;
 hingescrew_shaft_dia = 2.0 + 0.25; // M2 x 12mm machine screw
 hingescrew_shaft_len = 12;
 hingescrew_nut_thick = 1.93 + 0.20; // incl. washer
+hingescrew_fasteners_extra_thick = 0.40;
 hingescrew_nut_access_dia = 4.72 + 0.50;
 // ^ washer is 4.72 dia
 //   also, want to get pliers or tiny spanner in to do up locknut
@@ -232,10 +233,11 @@ hex20 = max(epp2o[0],
            kppd[0] + hingescrew_head_th + keeper_gap_x_holes);
 hex21 = hex20 + hingemount_wd;
 hex22 = hex21 + hinge_x_gap;
-hex23 = hex22 + hingescrew_portion_len
-  - hingescrew_nut_thick; // bodge, need to divvy this up more sensibly
+hex27 = hex20 + hingescrew_shaft_len;
+hex24 = hex27 + hinge_x_postscrew_gap;
+hex23 = hex27 - (hingescrew_nut_thick_real*2
+                + hingescrew_fasteners_extra_thick);
 hex26 = hex23 + hingescrew_nut_thick_real * 2/3;
-hex24 = hex20 + hingescrew_shaft_len + hinge_x_postscrew_gap;
 
 echo(hex20, hex21, hex22, hex23, hex24);
 //  6, 10.8725, 10.9975, 13.74, 18.75