From 8f760c16548a66f4921aeaf726acfbb9e17a3d4c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 15 Mar 2018 12:16:46 +0000 Subject: [PATCH] fairphone-case: working LidEdgeFoldClearanceProfile Reverts previous commit, and provides positive outline to intersect with that ensures clearance. Slope value needs to be calculated still. Signed-off-by: Ian Jackson --- fairphone-case.scad | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/fairphone-case.scad b/fairphone-case.scad index 41bad57..b781957 100644 --- a/fairphone-case.scad +++ b/fairphone-case.scad @@ -522,11 +522,12 @@ module LidEdgeProfile(){ } module LidEdgeFoldClearanceProfile(){ - polygon([ lpp10 + [0, -10], + polygon([ lpp10, lpp11, - lpp11 + [20, 0], - lpp10 + [20, -10] - ]); + lpp11 + [-20, 0], + lpp11 + [-20, 20], + lpp11 + [+20, 20], + lpp10 + [+20, 0] ]); } module ButtonCoverProfile(){ @@ -1072,8 +1073,19 @@ module Lid(){ ////toplevel skew_centre = [0, lpp11[0], lpp11[1]]; difference(){ union(){ - LidAroundEdges() - LidEdgeProfile(); + intersection(){ + LidAroundEdges() + LidEdgeProfile(); + + 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(); + } // button covers Buttons(){ @@ -1098,15 +1110,6 @@ 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(); -- 2.30.2