From 4ff1546cbf420e353cf1079a4c77d0881b770628 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 20 Jan 2018 20:08:38 +0000 Subject: [PATCH] fairphone-case: wip ButtonPlan Signed-off-by: Ian Jackson --- fairphone-case.scad | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/fairphone-case.scad b/fairphone-case.scad index 6b76344..81d2dfd 100644 --- a/fairphone-case.scad +++ b/fairphone-case.scad @@ -82,6 +82,9 @@ bppS = [ epp1[0], bppR[1] ]; bppQ = [ bppM[0], bppR[1] - lid_buttoncover_overlap ]; bppP = bppQ + [0,1] * lid_buttoncover_gap; bppO = [ bppN[0], bppP[1] ]; +bppL = lpp10 + [1,0]; +bppK = [ bppL[0], bppN[1] ]; +bppJ = [ bppN[0], bppL[1] ]; module rectfromto(a,b) { ab = b - a; @@ -124,6 +127,16 @@ module LidEdgeProfile(){ } } +module ButtonCoverProfile(){ + intersection(){ + polygon([ bppM, bppP, bppO, bppJ, bppL, bppK ]); + *hull(){ + EdgeProfile(); + LidEdgeProfile(); + } + } +} + module ButtonPlan(){ } @@ -306,10 +319,17 @@ module DemoProfiles(){ ////toplevel %EdgeProfile(); KeeperProfile(); - color("blue") rectfromto(bppM, bppO); - color("red") { - rectfromto(bppQ, [ bppS[0], bppQ[1] - 0.1]); - rectfromto(bppR, [ bppS[0], bppQ[1] - 0.1]); + translate([20,0]) { + LidEdgeProfile(); + %EdgeProfile(); + + demopoint_QR = [ bppS[0], bppQ[1] - 0.1]; + + color("blue") ButtonCoverProfile(); + color("red") { + rectfromto(bppQ, demopoint_QR); + rectfromto(bppR, demopoint_QR); + } } } -- 2.30.2