chiark / gitweb /
fairphone-case: Button cover, fix a bug
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 01:32:33 +0000 (01:32 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 01:32:33 +0000 (01:32 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index 15ac7fc..68b27da 100644 (file)
@@ -161,6 +161,8 @@ module ButtonPlan(l, deep, cut){
   G = T + [0,10];
 
   B0 = C + [0,-1] * button_cutout_depth;
+  B1 = B0 + [0,1] * epsilon;
+
   r0 = 0.5 * (T[1] - B0[1]);
   A = [  -(l + button_l_fudge)/2 + r0, 0.5 * (T[1] + B0[1]) ];
   H = A + [0,-1] * delta;
@@ -183,7 +185,7 @@ module ButtonPlan(l, deep, cut){
       polygon([ E1,
                I1,
                H,
-               B0,
+               B1,
                G,
                F,
                D