batt_d_real = 18;
batt_l = 65 + 1.5;
-batt_sep = 0.5;
+batt_sep = 0.65;
wall = 1;
wire_w = 3;
wire_h = 1.5;
-body_h = batt_d_real;
+body_h = 0.8*batt_d_real;
cyl_center_h = batt_l/3;
// z-offset from the widest point of the battery to the widest
// point of the clip
-top_clip_h = 0.35*batt_d;
+top_clip_h = 0.25*batt_d;
spring_sep = 0.7;
// outer part of the spring
for (x = [-1, 1]) scale([x, 1, 1]) {
// outmost d_out arc
translate([d_out/2+wall/2+spring_sep/2, 0, 0])
- cyl_arc(d_out, body_h, 0, 180);
+ cyl_arc(d_out, body_h, 0-eps, 180+eps);
// inner center d_in arc
translate([spring_sep/2+wall/2+d_in/2, 0, 0])
- cyl_arc(d_in, body_h, 180, 360);
+ cyl_arc(d_in, body_h, 180, 360+eps);
// outer center d_in arc
translate([spring_sep/2+wall/2+3*d_in/2, 0, 0])
- cyl_arc(d_in, body_h, 0, 180);
+ cyl_arc(d_in, body_h, -eps, 180+eps);
// innermost d_out arc
translate([2*d_in+wall/2+spring_sep/2-d_out/2, 0, 0])
- cyl_arc(d_out, body_h, 270, 360);
+ cyl_arc(d_out, body_h, 270-eps, 360+eps);
}
// center beam
translate([-2*d_in-spring_sep/2-wall/2+d_out/2, -d_out/2-wall/2, 0])