6 seal_th = 0.3 + 0.6 + 0.6 - 0.4 - 0.4 + 0.2; // total gap for seal etc.
13 battery_len = 66.55 + 1.25 -.55;
14 battery_th = 6.55 + 0.75 - .60;
15 battery_wdth = 44.38 + 0.75 -.55;
17 battery_base_indent = 0.94 + 0.50;
18 battery_base_indent_fromside_outside = 4;
19 battery_base_indent_fromside_inside = 10;
25 pushhole_ell_sz = 3.75;
26 pushhole_ell_th = 1.75;
27 pushhole_circle_dia = 2.5;
32 //battery_base_indent_fromside_inside = 6;
37 bpp1 = bpp0 + [ 0, mainwall_th - behind_recess ];
38 lppA = bpp1 + [ seal_th, -recess_gap_end ];
39 lppB = lppA + [ lid_edge_th, 0 ];
40 bpp2 = [ lppB[0], bpp1[1] ];
41 bpp3 = [ bpp2[0] + (bpp1 - bpp0)[1], bpp0[1] ];
42 bpp4 = [ bpp3[0], bpp0[1] + mainwall_th ];
43 lppC = bpp3 + [ 0, -recess_gap_end ];
45 lppF = lppC + [ handle_height, 0 ];
48 s0i = s0 - battery_th/2;
49 s1 = s0 + smallwall_th;
51 l1 = s1 - handle_inward;
74 bpp8 = bpp0 + [ -battery_len,0 ];
75 bpp5 = [ bpp8[0] - smallwall_th, bpp4[1] ];
76 bpp9 = [ bpp0[0], bpp0[1] - battery_th/2 - 1.0 ];
77 bpp7 = [ bpp8[0], bpp9[1] ];
78 bpp6 = [ bpp5[0], bpp9[1] ];
79 lppE = [ lppA[0], bpp9[1] ];
80 lppD = [ lppC[0], bpp9[1] ];
82 module BaseHalfPlan(indent=0){
90 bpp7 + indent * [1,0],
95 module SideHalfPlan(){
103 module LidHalfPlan(){
112 module HandleHalfPlan(){
117 module ExtrudePlan(from,to){
120 mirror([0,0,mj]) translate([0,0,from]){
121 linear_extrude(height= to-from, convexity=5){
124 translate([0, battery_th/2])
132 module PushHolePlan(){ ////toplevel
133 translate(-pushhole_ell_th * 0.5 * [1,1]) {
136 translate(-pushhole_ell_th * 0.5 * [1,1])
137 square([ pushhole_ell_sz, pushhole_ell_th ]);
138 circle(pushhole_circle_dia/2, $fn=20);
142 module PlanDemo(){ ////toplevel
143 color("blue") BaseHalfPlan();
144 color("red") LidHalfPlan();
145 translate([0,0,-1]) color("lightblue") SideHalfPlan();
148 module Base(){ ////toplevel
149 ExtrudePlan(0,s1) BaseHalfPlan();
152 ExtrudePlan(s0i, s1) SideHalfPlan();
153 ExtrudePlan(s0 - battery_base_indent_fromside_inside,
154 s0 - battery_base_indent_fromside_outside
155 ) BaseHalfPlan(indent = battery_base_indent);
159 translate([s0i, 0, bpp7[0] - 0.1])
160 cylinder(r= battery_th/2, h=100, $fs=0.5);
164 module BaseHalfTest(){ ////toplevel
167 translate([-100,0,-100])
172 module Lid(){ ////toplevel
173 ExtrudePlan(0,s1) LidHalfPlan();
174 ExtrudePlan(l0,l1) HandleHalfPlan();
177 module Demo(){ ////toplevel