From a7f05006a381c0e890fd00484f2f20c443aeff8a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 13 Feb 2016 23:55:24 +0000 Subject: [PATCH] bike-lipo-box: wip StrapKeepers Partially reverts 67b79108 - bringing back the basics of the shape used there --- bike-lipo-box.scad | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/bike-lipo-box.scad b/bike-lipo-box.scad index 72f506b..e5281ce 100644 --- a/bike-lipo-box.scad +++ b/bike-lipo-box.scad @@ -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]) -- 2.30.2