chiark / gitweb /
fairphone-case: catch: introduce catch_close_slope (nfc)
[reprap-play.git] / fairphone-case.scad
index ab2354afd5da248f63ed390988d8aa0e8abe3672..c7a0bd433684045b40308b94524805d3f1072d8f 100644 (file)
@@ -264,6 +264,7 @@ catch_height = 0.35;
 catch_finger_height = 1.5;
 catch_finger_depth = 2.5;
 catch_catch_slope = 0.25;
+catch_close_slope = 1.00;
 
 catch_topcurve_r = 5.0;
 
@@ -440,7 +441,7 @@ cppD = [ cppA[0], cppS[1] + catch_slop ];
 cppC = [ cppB[0], cppD[1] ];
 cppT = cppS + [1, -catch_catch_slope] * catch_depth;
 cppU = cppT + [0,-1] * catch_height;
-cppV = [ cppS[0], cppU[1] - catch_depth ];
+cppV = [ cppS[0], cppU[1] - catch_depth * catch_close_slope ];
 
 cppR = 0.5*(cppP + cppJ);
 
@@ -1274,10 +1275,17 @@ module Lid(){ ////toplevel
            translate([0,0,-10])
            linear_extrude(height= 20)
            ButtonPlan($button_l, 1,0);
-         rotate([90,0,0])
-            translate([0,0,-100])
-           linear_extrude(height= 200)
-           ButtonCoverProfile();
+         union(){
+           rotate([90,0,0])
+             translate([0,0,-100])
+             linear_extrude(height= 200)
+             ButtonCoverProfile();
+           hull()
+             for (y= [-1,+1] * (($button_l + button_l_fudge)/2
+                                - lid_buttoncover_reinf))
+               translate([0,y,0])
+                 ButtonCoverReinf();
+         }
        }
       }
 
@@ -1760,8 +1768,9 @@ module DemoProfiles(){ ////toplevel
     %EdgeProfile();
     %LidEdgeProfile();
     //translate([0,0,1]) CatchCutProfile();
+    translate([0,0,+1]) color("red")
+      difference(){ EdgeProfile(); CatchCutProfile(); }
     color("blue") CatchCatchProfile();
-    color("red") difference(){ EdgeProfile(); CatchCutProfile(); }
   }
 
   translate([40,-30]) {