chiark / gitweb /
fairphone-case: ButtonPlan: fix heights
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 20 Jan 2018 21:20:26 +0000 (21:20 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 20 Jan 2018 21:20:26 +0000 (21:20 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index c7cb49b..423adb1 100644 (file)
@@ -141,7 +141,7 @@ module ButtonCoverProfile(){
 module ButtonPlan(l, deep, cut){
   bigger =
     (deep ? lid_buttoncover_overlap : 0) +
-    (cut  ? lid_buttoncover_gap     : 0);
+    (cut  ? 0 : -lid_buttoncover_gap);
 
   d_D1_y =
     (cut  ? 0 : lid_buttoncover_gap);
@@ -379,10 +379,9 @@ module DemoProfiles(){ ////toplevel
   }
 
   translate([-20,0]) {
-    ButtonPlanForDemo("blue",    0, 0,0);
-    ButtonPlanForDemo("red",    -1, 0,1);
-    ButtonPlanForDemo("yellow", -2, 1,0);
-    ButtonPlanForDemo("blue",   -3, 1,1);
+    ButtonPlanForDemo("grey",    -1, 0,1);
+    ButtonPlanForDemo("blue",   -2, 1,0);
+    ButtonPlanForDemo("red", -3, 1,1);
   }
 }