15 wallheight = strapbotgap + strapthick + overstrap;
17 availlen = (len - strapsidegap);
18 numstraps = floor(availlen / (strapwidth + strapsidegap));
19 strapstride = availlen / numstraps;
20 echo(numstraps, strapstride);
24 cube([len, width, basethick+wallheight]);
25 translate([-1, sidewall, basethick])
26 cube([len+2, width-sidewall*2, wallheight+1]);
27 for (i=[0:numstraps-1]) {
28 translate([ (0.5+i)*strapstride + strapsidegap/2,
30 basethick + strapbotgap + strapthick/2 ])
31 cube([strapwidth, width*2, strapthick], center=true);