+ // cable lead to battery contacts
+ for (x=[1, -1]) scale([x, 1, 1])
+ rotate([-140, 0, 0])
+ translate([batt_len/2+wire_thick/2, 0, batt_diam/2-2.7])
+ cylinder(r=wire_thick/2, h = 5.4);
+
+ // mounting holes
+ for(x=[-1,1]) scale([x, 1, 1])
+ translate([batt_len/2-mounthole_w/2, batt_diam/2+wall+mounthole_h/2, -infty/2])
+ scale([1, mounthole_h/mounthole_w, 1])
+ cylinder(r = mounthole_w/2, h = infty);
+ };
+ // clip barrier
+ for (x = [-1, 1]) scale([x, 1, 1]) hull () {
+ translate([batt_len/2+wall-eps, batt_diam/2-pcb_width+wall/2+lid_sep,
+ -batt_diam/2-pcb_thick-pcb_comp_h + wall + lid_sep])
+ cube([wall+eps, pcb_width-2*wall-2*lid_sep, wall]);
+ translate([batt_len/2+wall-eps, batt_diam/2-pcb_width+3*wall/2+lid_sep,
+ -batt_diam/2-pcb_thick-pcb_comp_h + 3*wall + lid_sep])
+ cube([eps, pcb_width-4*wall-2*lid_sep, eps]);