chiark / gitweb /
fairphone-case: adjust "bumpers" comment
[reprap-play.git] / fairphone-case.scad
index 42de8f9373364a52dd89e6eb795f739cd9658cab..254abcf88cce30849c424cc024fce32a46b6dd80 100644 (file)
@@ -1,7 +1,10 @@
 // -*- C -*-
 
-phone_height = 146.5;
-phone_width = 76.75;
+phone = [ 145.0, 75.0 ];
+
+bumpers = [ 1.5, 1.75 ];
+// ^ both sides together.
+// If no bumpers, is the gap around the phone.
 
 phone_cnr_rad = 6.0;
 
@@ -51,6 +54,9 @@ strut_min_at_end = 1.5;
 
 // ---------- calculated ----------
 
+phone_height = (phone + bumpers)[0];
+phone_width =  (phone + bumpers)[1];
+
 // ----- could be changed -----
 lid_buttoncover_gap = lid_gap_x;
 lid_buttoncover_overlap = case_th_lip + keeper_gap_z_top;
@@ -352,7 +358,7 @@ module Lid(){ ////toplevel
          rotate([90,0,90])
            translate([0,0,-10])
            linear_extrude(height= 20)
-           ButtonPlan($button_l, 0,0);
+           ButtonPlan($button_l, 1,0);
          rotate([90,0,0])
             translate([0,0,-100])
            linear_extrude(height= 200)
@@ -416,6 +422,11 @@ module TestLidByCameraPrint(){ ////toplevel
   rotate([180,0,0]) TestLidByCamera();
 }
 
+module DemoByCamera(){ ////toplevel
+  color("blue") TestLidByCamera();
+  color("red")  TestCamera();
+}
+
 module OneKeeper(){ ////toplevel
   translate([0, -phone_cnr_rad, 0])
     rotate([90, 0, 0])