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

index 6c6961b..e2e673a 100644 (file)
@@ -196,14 +196,18 @@ module Box(){ ////toplevel
        S1930_Positive();
 
       // keepers for lipo
-      for (keepers= [[ 40, lipokeeper_d_min, [ 10, 40, 80, 120 ] ],
-                    [ 20, lipokeeper_end_d_min, [ 135 ]       ] ])
-       for (kx= keepers[2]) {
+      for (keepers= [[ 40, lipokeeper_d_min,     lipokeeper_h,
+                      [ 10, 40, 80, 120 ] ],
+                    [ 20, lipokeeper_end_d_min, lipokeeper_h,
+                      [ 135 ] ]
+                    // each entry: [ y, d_min, h, [ x, ...] ]
+                    ])
+       for (kx= keepers[3]) {
          translate([kx, keepers[0], -1])
            hull(){
-             cube([lipokeeper_w, keepers[1], lipokeeper_h +1]);
+             cube([lipokeeper_w, keepers[1], keepers[2] +1]);
              cube([lipokeeper_w,
-                   keepers[1] + lipokeeper_h / lipokeeper_slope,
+                   keepers[1] + keepers[2] / lipokeeper_slope,
                    1]);
            }
       }