chiark / gitweb /
fairphone-case: turn off finger push hole
[reprap-play.git] / fairphone-case.scad
index ef3f7c26a42dc0caa81633e19d25ced2f1da02c0..a0bab49eee2c5355ec1203f3565a17bca2a432b2 100644 (file)
@@ -8,6 +8,8 @@ bumper = [ 0.250, -0.025 ];
 // ^ One side.  Overall size is increased by twice this.
 // If no bumpers, is the gap around the phone.
 
+enable_support = 1;
+
 phone_cnr_rad = 6.0;
 
 button_cutout_depth = 9;
@@ -26,7 +28,8 @@ jack_dia = 9.1 + .5; // some jack I had lying around
 noisecancelmic_pos = [ 19.54, 7.37 ];   // from rhs
 noisecancelmic_dia = 1.75;
 
-fingerpushhole_dias = [ 15, 18 ];
+//fingerpushhole_dias = [ 15, 18 ];
+fingerpushhole_dias = [];
 
 rearspeaker_pos_bl = [ 12.64, 18.72 ];
 rearspeaker_size   = [  3.76,  7.36 ];
@@ -473,8 +476,9 @@ module OrdinaryRearApertures(){
               rearspeaker_size + rearspeaker_gap);
 
   // finger hole to remove phone
-  OrdinaryRearAperture(1,0, [ fingerpushhole_dias[0]/2 + epp2i[0],
-                             phone[1]/2 ])
+  if (len(fingerpushhole_dias))
+    OrdinaryRearAperture(1,0, [ fingerpushhole_dias[0]/2 + epp2i[0],
+                               phone[1]/2 ])
     scale(fingerpushhole_dias)
     circle(r= 0.5 );
 }
@@ -600,6 +604,7 @@ module Case(){ ////toplevel
     Buttons(){
       mirror([1,0,0])
        rotate([90,0,90]) {
+         if (!($button_leg_only && enable_support))
          intersection(){
            translate([0,0,-10])
              linear_extrude(height= 20)
@@ -609,6 +614,11 @@ module Case(){ ////toplevel
                translate([phone_width/2, -400, kppe[1]])
                mirror([1-abs($rhsflip - keeper_side),0,0])
                cube([400, 800, 50]);
+           if (enable_support)
+             rotate([-90,90,0])
+             translate([-400, -400, kppd[1]])
+               mirror([0,0,1])
+               cube([800,800,100]);
          }
          translate([0,0, -bppR[0]])
            linear_extrude(height= 20)