chiark / gitweb /
bike-lipo-box: adjustments from #1306: prep for keeper at lipo RH end (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Feb 2016 17:28:30 +0000 (17:28 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Feb 2016 17:28:30 +0000 (17:28 +0000)
bike-lipo-box.scad

index 67a9854..c7d376b 100644 (file)
@@ -195,14 +195,15 @@ module Box(){ ////toplevel
        S1930_Positive();
 
       // keepers for lipo
-      for (kx= [ 10, 40, 80, 120 ]) {
-       translate([kx, 40, -1])
-         hull(){
-           cube([lipokeeper_w, lipokeeper_d_min, lipokeeper_h +1]);
-           cube([lipokeeper_w,
-                 lipokeeper_d_min + lipokeeper_h / lipokeeper_slope,
-                 1]);
-         }
+      for (keepers= [[ 40, lipokeeper_d_min, [ 10, 40, 80, 120 ] ]])
+       for (kx= keepers[2]) {
+         translate([kx, keepers[0], -1])
+           hull(){
+             cube([lipokeeper_w, keepers[1], lipokeeper_h +1]);
+             cube([lipokeeper_w,
+                   keepers[1] + lipokeeper_h / lipokeeper_slope,
+                   1]);
+           }
       }
 
       AtGlands()