chiark / gitweb /
fairphone-battery-case: PushHolePlan wip
[reprap-play.git] / fairphone-battery-case.scad
index afa7524128097978a19599c2f9a877bec3d71b3a..7b1537562357d932649564991cd219c5fb6641ad 100644 (file)
@@ -3,10 +3,10 @@
 mainwall_th = 3.0;
 smallwall_th = 2.0;
 
-seal_th = 0.3 + 0.6 + 0.6; // total gap for seal etc.
+seal_th = 0.3 + 0.6 + 0.6 - 0.4 - 0.4 + 0.2; // total gap for seal etc.
 behind_recess = 1.5;
 
-recess_gap_end = 0.2;
+recess_gap_end = 0.4;
 
 lid_edge_th = 0.5;
 
@@ -19,11 +19,15 @@ battery_base_indent_fromside_outside = 4;
 battery_base_indent_fromside_inside = 10;
 
 handle_height = 3.5;
-handle_inward = 5;
+handle_inward = 10;
 handle_len = 5;
 
+pushhole_ell_sz = 3.5;
+pushhole_ell_th = 1.5;
+pushhole_circle_dia = 2.0;
+
 // for testing:
-//battery_len = 3;
+battery_len = 3;
 //battery_wdth = 15;
 //battery_base_indent_fromside_inside = 6;
 
@@ -125,6 +129,15 @@ module ExtrudePlan(from,to){
   }
 }
 
+module PushHolePlan(){ ////toplevel
+//  translate(-pushhole_ell_th * 0.5 * [1,1])
+    for (r=[0,90])
+      rotate(r)
+       translate(-pushhole_ell_th * 0.5 * [1,1])
+       square([ pushhole_ell_sz, pushhole_ell_th ]);
+  circle(pushhole_circle_dia/2, $fn=20);
+}
+
 module PlanDemo(){ ////toplevel
   color("blue") BaseHalfPlan();
   color("red") LidHalfPlan();