chiark / gitweb /
fairphone-case: wip prop profile, fixes
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 27 Jan 2018 01:21:40 +0000 (01:21 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 27 Jan 2018 01:21:40 +0000 (01:21 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index 1d60ea0..c37eb01 100644 (file)
@@ -123,7 +123,7 @@ prop_lidrecess_behind = 0.75;
 prop_caserecess_behind = 0.75;
 prop_caserecess_taper = 0.35; // one side only
 prop_prop_gap = 0.5;
-prop_prong_heel_slope = 1.0;
+prop_prong_heel_slope = 0.5;
 
 // ---------- calculated ----------
 
@@ -652,16 +652,17 @@ module PropProfile(gamma, cut=0){ ////toplevel
     (prop_main_th/2 + prop_prop_gap + prcp1[0] - epp4[0]);
   prpp3 = prpp1 + [ -prp_r1,
                    (prcp2[1] - prcp1[1]) - prop_prop_gap ];
+  prpp12 = prpp3 + [1,0] *
+    (prop_end_dia + prop_caserecess_taper * (prpp1[1] - prpp3[1]));
   prp_r8 = prop_main_th;
   prpp4 = [ prop_main_th/2, prpp3[1] ];
   prp_r5 = prp_r8;
-  prpp5 = [ prpp1[0] + prp_r1 - prp_r5,
+  prpp5 = [ prpp12[0] - prp_r5,
            prpp3[1] - prop_prong_h + prp_r5 ];
   prpp6 = prpp4 + [0,-1] * (prop_prong_h +
          prop_prong_heel_slope * (prpp5[0] - prpp4[0]));
   prpp8 = prpp4 + [0,-1] * prp_r8;
   prpp9 = prpp8 + [-1,0] * prp_r8;
-  prpp12 = prpp3 + [1,0] * prop_end_dia;
 
   //#circleat(prpp5,1);
 
@@ -1110,7 +1111,7 @@ module DemoProfiles(){ ////toplevel
        //PropProfile(10, 1);
     }
     translate(prlp10)
-      PropProfile(10, 0);
+      PropProfile(15, 0);
   }
 }