chiark / gitweb /
fairphone-case: hinge: take max of r1 and r2
[reprap-play.git] / fairphone-case.scad
index e230a769026fc362eb9069840a9e16272ac84df7..bcd8eb8a25757bd2416b0295c73aee733e78eae0 100644 (file)
@@ -31,9 +31,9 @@ fingerpushhole_dias = [ 15, 18 ];
 rearspeaker_pos_bl = [ 12.64, 18.72 ];
 rearspeaker_size   = [  3.76,  7.36 ];
 
-microusb_above = 4.48 + 0.50;
-microusb_below = 1.82 + 0.50;
-microusb_width = 10.60 + 1.00;
+microusb_above = 3.27 - 0.25;
+microusb_below = 0.0;
+microusb_width = 16.12 + 0.25;
 
 case_th_bottom = 2.5;
 case_th_lid = 2.5;
@@ -145,9 +145,12 @@ bppJ = [ bppN[0], bppL[1] ];
 
 // hinge plan
 hp_rn = hingescrew_nut_dia/2;
-hp_r2 = hp_rn + lever_cover_th;
+hp_r2_min = hp_rn + lever_cover_th;
 hp_rs = hingescrew_shaft_dia/2;
-hp_r1 = hp_rs + hingemount_th;
+hp_r1_min = hp_rs + hingemount_th;
+
+hp_r1 = max(hp_r1_min, hp_r2_min);
+hp_r2 = hp_r1;
 
 hppU = lpp13;
 hppS = epp2o + [0,-1] * case_th_bottom;