chiark / gitweb /
fairphone-case: hinge: fix under slope of base arms
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 22:15:22 +0000 (22:15 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 22:15:22 +0000 (22:15 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index bcd8eb8..67218c7 100644 (file)
@@ -80,6 +80,8 @@ $fs = 0.1;
 button_l_fudge = 4.4;
 buttonishleg_default_l_is_fudge = 10;
 
+hinge_base_slope = 1.5; // bigger is steeper
+
 strut_min_at_end = 1.5;
 
 hinge_x_gap = 0.125;
@@ -161,6 +163,10 @@ hppM = [ epp4[0] - foldover_lever_gap - hp_r2,
 hppT = [ hppM[0], hppU[1] - hp_r1 ];
 hppB = hppT + [0,-1] * hp_k;
 
+hppE_y = epp2o[1] - case_th_bottom + hp_r1;
+hppE_x = hppB[0] + (hppB[1] - hppE_y) * hinge_base_slope;
+hppE = [ hppE_x, hppE_y ];
+
 // hinge elevation x coords
 
 hingescrew_portion_len =
@@ -436,6 +442,7 @@ module HingeBaseProfile(){
   difference(){
     hull(){
       circleat(hppB, hp_r1);
+      circleat(hppE, hp_r1);
       circleat(epp2o, case_th_bottom);
       circleat(hppB + [10,0], hp_r1);
     }