mainwall_th = 3.0;
smallwall_th = 2.0;
-seal_th = 0.3 + 0.6 + 0.6; // total gap for seal etc.
+seal_th = 0.3 + 0.6 + 0.6 - 0.4 - 0.4 + 0.2; // total gap for seal etc.
behind_recess = 1.5;
recess_gap_end = 0.4;
battery_base_indent_fromside_outside = 4;
battery_base_indent_fromside_inside = 10;
+handle_height = 3.5;
+handle_inward = 10;
+handle_len = 5;
+
// for testing:
-//battery_len = 3;
+battery_len = 3;
//battery_wdth = 15;
//battery_base_indent_fromside_inside = 6;
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