chiark / gitweb /
cable-hole-trunking-cover: break back wall out, nfc
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Dec 2012 19:36:09 +0000 (19:36 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Dec 2012 19:36:09 +0000 (19:36 +0000)
cable-hole-trunking-cover.scad

index 584ee01..07daa9d 100644 (file)
@@ -40,18 +40,22 @@ module Base(){
        translate([0, basey/2 - sidewallt, 0])
          sheared_cube([basex, sidewallt, bevelz], 0, bevelslope);
        cube([basex, basey/2, basebaset]);
-       rotate([90, 0, 90])
-         linear_extrude(height=endwallt)
-         polygon([[-0.1,             0],
-                  [basey/2,          0],
-                  [basey/2 + bevely, bevelz],
-                  [basey/2 + bevely, innerz],
-                  [-0.1,             innerz]]);
       }
     }
     translate([basex/2, 0, -1])
       cylinder(r=holedia/2, h=bevelz+2);
   }
+  difference(){
+    for (mir=[0,1]) mirror([0,mir,0]) {
+      rotate([90, 0, 90])
+       linear_extrude(height=endwallt)
+       polygon([[-0.1,             0],
+                [basey/2,          0],
+                [basey/2 + bevely, bevelz],
+                [basey/2 + bevely, innerz],
+                [-0.1,             innerz]]);
+    }
+  }
 }
 
 module Lid(){