chiark / gitweb /
sleepphone-cable-box: refactor, nfc
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 10 Sep 2018 21:12:43 +0000 (22:12 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 10 Sep 2018 21:12:43 +0000 (22:12 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
sleepphone-cable-box.scad

index 0d170e82659c5387aa5daa7f22b536046e60ed54..60b34cd595a2661d225d45a9d7928044a4248667 100644 (file)
@@ -67,13 +67,15 @@ module MainProfileInnerHalf(){
 
 module MainProfile(){
   p = phone + phone_slop;
 
 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] ]);
        translate([-1, -wall[2] ])
          square([ p[1]/2 + wall[1] + 1, top_z + wall[2] ]);
+      }
+    for (m=[0,1]) mirror([m,0]) {
        MainProfileInnerHalf();
       }
        MainProfileInnerHalf();
       }
-    }
+  }
 }
 
 module BoxMain(){
 }
 
 module BoxMain(){