chiark / gitweb /
bike-lipo-box: wip StrapKeepers
[reprap-play.git] / bike-lipo-box.scad
index 72f506b87de5d1e2bc69bc765f7d42e55acb62e1..e5281cedf9a24fdac8571fad5043ff258c345d4f 100644 (file)
@@ -25,12 +25,14 @@ wallthick = 2.5;
 
 cabledia = 8.7;
 
-strap_w = 5;
+strap_w = 5 + 1;
 strap_th = 4;
 strap_pillar = 3;
 strap_pillard = 5;
 strap_over = 2;
 
+strap_every = 30;
+
 // calculated
 
 totx_outer = totx_inner + wallthick*2;
@@ -149,6 +151,21 @@ module AtGlands(){
   }
 }
 
+module StrapKeepers(){
+  strap_x_tot = strap_w + strap_pillar*2;
+
+  for (sx=[strap_every : strap_every : totx_inner - strap_every]) {
+    echo("strapkeeper at ",sx);
+    translate([sx - strap_x_tot, 0, 0])
+      difference(){
+      translate([0,0, -0.1])
+       cube([strap_x_tot, strap_pillard, strap_th + strap_over]);
+      translate([strap_pillar, -1, 0])
+       cube([strap_w, strap_pillard+2, strap_th]);
+    }
+  }
+}
+
 module Box(){ ////toplevel
   $sealingbox_sz = sb_box_sz;
 
@@ -156,8 +173,6 @@ module Box(){ ////toplevel
   switch_x = chargingconn_x + pxp6012_rad_outer
     + s1930_y_outer/2 + s1930_around;
 
-  strap_x_tot = strap_w + strap_pillar*2;
-
   difference(){
     union(){
       rotate([90,0,0])