battery_base_indent_fromside_outside = 4;
battery_base_indent_fromside_inside = 10;
+handle_height = 3.5;
+handle_inward = 5;
+handle_len = 5;
+
// for testing:
//battery_len = 3;
//battery_wdth = 15;
bpp4 = [ bpp3[0], bpp0[1] + mainwall_th ];
lppC = bpp3 + [ 0, -recess_gap_end ];
+lppF = lppC + [ handle_height, 0 ];
+
s0 = battery_wdth/2;
s0i = s0 - battery_th/2;
s1 = s0 + smallwall_th;
+l1 = s1 - handle_inward;
+l0 = l1 - handle_len;
+
echo(
bpp0,
bpp1,
]);
}
+module HandleHalfPlan(){
+ translate(lppE)
+ square(lppF - lppE);
+}
+
module ExtrudePlan(from,to){
rotate([0,-90,0])
for (mj=[0,1]) {
module Lid(){ ////toplevel
ExtrudePlan(0,s1) LidHalfPlan();
+ ExtrudePlan(l0,l1) HandleHalfPlan();
}
module Demo(){ ////toplevel