chiark / gitweb /
fairphone-case: for revert: LidEdgeFoldClearanceProfile
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 15 Mar 2018 12:12:43 +0000 (12:12 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 15 Mar 2018 12:12:44 +0000 (12:12 +0000)
This is no good; it needs to be an intersection, not a difference,
because AroundEdges fills in the middle which we do not want.

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

index d3eafb38d3c2c6088c20871ec8a7fee1690c4284..41bad57660bfe76e488520c12b7fba7705a2dba6 100644 (file)
@@ -521,6 +521,14 @@ module LidEdgeProfile(){
   }
 }
 
+module LidEdgeFoldClearanceProfile(){
+  polygon([ lpp10 + [0,  -10],
+           lpp11,
+           lpp11 + [20,   0],
+           lpp10 + [20, -10]
+           ]);
+}
+
 module ButtonCoverProfile(){
   intersection(){
     polygon(concat([ bppM, bppP, bppO, bppJ ],
@@ -1090,6 +1098,15 @@ module Lid(){ ////toplevel
     }
     Struts(lpp10[0] + strut_min_at_end, lpp13[1], -case_th_lid);
 
+    translate(skew_centre)
+      multmatrix([[ 1, 0, 0, 0 ],
+                 [ 0, 1, 2, 0 ],
+                 [ 0, 0, 1, 0 ],
+                 [ 0, 0, 0, 1 ]])
+      translate(-skew_centre)
+      LidAroundEdges()
+      LidEdgeFoldClearanceProfile();
+
     // screw holes in the hinge arms
     HingeScrews();