chiark / gitweb /
sleepphone-cable-box: refactor, nfc
[reprap-play.git] / sleepphone-cable-box.scad
index 95fb6475ed972b6c766265f08746dd3f5a63e24f..60b34cd595a2661d225d45a9d7928044a4248667 100644 (file)
@@ -3,10 +3,12 @@
 include <funcs.scad>
 
 wall = 0.75 * [1,1,1];
-phone = [ 76.40, 30.96, 6.26 ]; // includes socket
+phone = [ 76.40, 30.96, 6.00 ]; // includes socket
 phone_button_z = 6.58;
 minwall = 0.50;
 
+button_dz = 1.35;
+
 button_dy_outer = 28.42;
 button_dy_inner = 19.05;
 button_dy_centre = 5.65;
@@ -65,13 +67,15 @@ module MainProfileInnerHalf(){
 
 module MainProfile(){
   p = phone + phone_slop;
-  for (m=[0,1]) mirror([m,0]) {
-      difference(){
+  difference(){
+    for (m=[0,1]) mirror([m,0]) {
        translate([-1, -wall[2] ])
          square([ p[1]/2 + wall[1] + 1, top_z + wall[2] ]);
+      }
+    for (m=[0,1]) mirror([m,0]) {
        MainProfileInnerHalf();
       }
-    }
+  }
 }
 
 module BoxMain(){