chiark / gitweb /
sleepphone-cable-box: attempt at cutout, before rework
[reprap-play.git] / sleepphone-cable-box.scad
index d04fc4534d53e07e9d5ad0c1058f32bfbdcca673..8c06fb69c60d87b86099931a091689235b166415 100644 (file)
@@ -3,12 +3,14 @@
 include <funcs.scad>
 
 wall = 0.75 * [1,1,1];
-wall_bot = 0.75;
+wall_bot = 1.0;
 
 phone = [ 76.40, 30.96, 6.00 ]; // includes socket
 phone_button_z = 6.58;
 minwall = 0.50;
 
+cutout_depth = 5;
+
 button_dz = 1.35;
 
 button_dy_outer = 28.42;
@@ -127,10 +129,14 @@ module PlugKeeper(){
        PlugKeeperProfileHalf();
 
     }
+}
 
-  translate([0,0, -keeper_stalk_thick])
-    linear_extrude(height = keeper_stalk_thick)
-    PlugKeeperStalkProfile();
+module KeeperProjection(){
+  projection()
+    rotate([0,90,0])
+    linear_extrude(height= 20)
+    projection()
+    PlugKeeper();
 }
 
 module Box(){
@@ -144,12 +150,23 @@ module Box(){
       translate([ -0.1, ys * keeper_stalk_gap, -wall[2]*2])
        linear_extrude(height = wall[2]*3)
        PlugKeeperStalkProfile();
+
+    translate([ phone[0] - cutout_depth,
+               0,
+               -10 ])
+      linear_extrude(height=50)
+      KeeperProjection();
   }
 
   PlugKeeper();
+
+  translate([0,0, -keeper_stalk_thick])
+    linear_extrude(height = keeper_stalk_thick)
+    PlugKeeperStalkProfile();
 }
 
 //MainProfileInnerHalf();
 //MainProfile();
+//KeeperProjection();
 Box();