- translate([batt_len/2-wall-wire_thick, batt_diam/2+2*wall, -batt_diam/2-pcb_thick-2*pcb_comp_h-wall])
- vert_torus();
-
- for (x = [-1, 1]) scale([x, 1, 1]) for (x0 = [0, 10])
- translate([batt_len/2-wall-wire_thick-x0, 0, batt_diam/2+wire_thick/2+wall])
- rotate([-90, 0, 0])
- scale([2,1,1]) cylinder (r=wire_thick/2, h=infty, $fn=16);
+ 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);
+ // grabbing gap
+ for(x=[-1,1]) scale([x, 1, 1])
+ translate([batt_len/2+cable_sep+wall+10, batt_diam/2-pcb_width/2, -batt_diam/2-pcb_comp_h-pcb_comp_h2-pcb_thick-wall-eps])
+ cylinder(r1 = 10, r2 = 10 - wall, h = wall + 2*eps);
+ // internal plus sign - vertical line
+ translate([-batt_len/2 + 0.5*wall+plus_width/2, -plus_width/2, -batt_diam/2-wall])
+ cube([wall, plus_width, infty]);
+ // internal plus and minus signs - horizontal line
+ for(x=[-1,1]) scale([x, 1, 1])
+ translate([batt_len/2 - wall - plus_width, -wall/2, -batt_diam/2-wall])
+ cube([plus_width, wall, infty]);
+ // button + label
+ scale([-1, 1, 1])
+ translate([sw_xoff + sw_diam/2 + wall/2 + plus_width/2, batt_diam/2-pcb_width/2-plus_width/2, -batt_diam/2-pcb_thick-pcb_comp_h-pcb_comp_h2-wall-eps])
+ cube([wall, plus_width, wall/2]);
+ // button +/- label - horizontal line
+ for (x=[-1, 1]) scale([x, 1, 1])
+ translate([sw_xoff + sw_diam/2 + wall, batt_diam/2-pcb_width/2-wall/2, -batt_diam/2-pcb_thick-pcb_comp_h-pcb_comp_h2-wall-eps])
+ cube([plus_width, wall, wall/2]);
+ // rounded top
+ for (x=[-1, 1]) scale([x, 1, 1])
+ translate([batt_len/2 + wall + cable_sep, -infty/2, body_top_h - 2*wall])
+ rotate([-90, 0, 0])
+ scale([1, -2, 1])
+ difference() {
+ cube([wall+eps, wall+eps, infty]);
+ translate([0, 0, -eps])
+ cylinder(r=wall, h=infty+2*eps);
+ }