chiark / gitweb /
ksafe-base: introduce AtTwoCorners (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 Oct 2018 00:43:50 +0000 (00:43 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 Oct 2018 00:43:50 +0000 (00:43 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
ksafe-base.scad

index 3ff7efb..1d4048b 100644 (file)
@@ -175,19 +175,27 @@ module SWalls(ymin, ymax, t_bevel) {
   }
 }
 
-module KsafeBase(){
-  /// corners
-  for (xm=[0,1]) for (ym=[0,1]) {
-    mirror([xm,0,0]) mirror([0,ym,0])
+module AtTwoCorners(){
+  for (xm=[0,1]) {
+    mirror([xm,0,0]) 
     translate((hsz - cnr_rad) * [1,1])
     intersection(){
       rotate_extrude(convexity=10)
        translate([-cnr_rad,0])
-       UsualProfile();
+       children();
       translate([0,0,-250])
        cube([50,50,500]);
     }
   }
+}
+
+module KsafeBase(){
+  /// corners
+  for (ym=[0,1]) mirror([0,ym,0]) {
+    AtTwoCorners(){
+      UsualProfile();
+    }
+  }
 
   // side walls and base
   SWalls(yw6 , yw4 , bevel  ) { UsualProfile();      BaseProfile(); }