From: Jan "Yenya" Kasprzak Date: Fri, 24 Jan 2014 11:21:31 +0000 (+0100) Subject: case.scad: mark the battery polarity X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=138fbcfab1abb032b8b532e845bfb92372a8d827;p=heater.git case.scad: mark the battery polarity --- diff --git a/case.scad b/case.scad index c1df55c..f96549a 100644 --- a/case.scad +++ b/case.scad @@ -50,6 +50,8 @@ mountcone_h = mounthole_h + 2*wall; clip_pretension = 0.5; +plus_width = 4.5; // width of the + sign + module case_body() { hull() { translate([-batt_len/2-2*wall-cable_sep, -batt_diam/2-wall, 0]) @@ -205,6 +207,13 @@ module case() { 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-2*pcb_comp_h-pcb_thick-wall-eps]) cylinder(r1 = 10, r2 = 10 - wall, h = wall + 2*eps); + // plus sign - vertical line + translate([batt_len/2 - 1.5*wall-plus_width/2, -plus_width/2, -batt_diam/2-wall]) + cube([wall, plus_width, infty]); + // 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]); }; // clip barrier for (x = [-1, 1]) scale([x, 1, 1]) hull () {