chiark / gitweb /
fairphone-case: introduce lid_fold_clearance_antislop
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 15 Mar 2018 13:04:45 +0000 (13:04 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 15 Mar 2018 13:04:45 +0000 (13:04 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index e6fe93b1ba1f3d3e20c88aec06a2e4185b257d7f..b47413d0a4c2bb6c65c2eb7547bc77cecb01d190 100644 (file)
@@ -270,6 +270,8 @@ prop_caserecess_taper = 0.45; // one side only
 prop_prop_gap = 0.5;
 prop_prong_heel_slope = 0.5;
 
+lid_fold_clearance_antislop = 0.5;
+
 // ---------- calculated ----------
 
 phone_width =  (phone + bumper*2)[0];
@@ -528,12 +530,13 @@ module LidEdgeProfile(){
 }
 
 module LidEdgeFoldClearanceProfile(){
-  polygon([ lpp10,
-           lpp11,
-           lpp11 + [-20,  0],
-           lpp11 + [-20, 20],
-           lpp11 + [+20, 20],
-           lpp10 + [+20,  0] ]);
+  translate([-lid_fold_clearance_antislop, 0])
+    polygon([ lpp10,
+             lpp11,
+             lpp11 + [-20,  0],
+             lpp11 + [-20, 20],
+             lpp11 + [+20, 20],
+             lpp10 + [+20,  0] ]);
 }
 
 module ButtonCoverProfile(){