chiark / gitweb /
bike-lipo-box: strap keepers on box in good places
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Feb 2016 00:01:09 +0000 (00:01 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Feb 2016 00:01:09 +0000 (00:01 +0000)
bike-lipo-box.scad

index e5281cedf9a24fdac8571fad5043ff258c345d4f..51e5639cd1ca1152875c72bb8a14c96bd8d3365e 100644 (file)
@@ -26,12 +26,12 @@ wallthick = 2.5;
 cabledia = 8.7;
 
 strap_w = 5 + 1;
-strap_th = 4;
+strap_th = 4 + 1;
 strap_pillar = 3;
 strap_pillard = 5;
 strap_over = 2;
 
-strap_every = 30;
+straps_at_box = [45, 95, 125, 160];
 
 // calculated
 
@@ -151,10 +151,10 @@ module AtGlands(){
   }
 }
 
-module StrapKeepers(){
+module StrapKeepers(at){
   strap_x_tot = strap_w + strap_pillar*2;
 
-  for (sx=[strap_every : strap_every : totx_inner - strap_every]) {
+  for (sx= at) {
     echo("strapkeeper at ",sx);
     translate([sx - strap_x_tot, 0, 0])
       difference(){
@@ -191,6 +191,10 @@ module Box(){ ////toplevel
 
       AtGlands()
        GlandPositive(cabledia);
+
+      translate([0, toty_inner+wallthick, -wallthick])
+       rotate([180, 0,0])
+       StrapKeepers(straps_at_box);
     }
 
     // charging connector
@@ -222,3 +226,4 @@ module BoxPrint(){ ////toplevel
 //TestSealBox();
 //TestSealLid();
 //FArcSegment_mask(350);
+//StrapKeepers();