]> www.fi.muni.cz Git - heater.git/commitdiff
case.scad: mark the battery polarity
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 24 Jan 2014 11:21:31 +0000 (12:21 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 24 Jan 2014 22:38:23 +0000 (23:38 +0100)
case.scad

index c1df55c6f9c6be01c7f651b5d29dd6eb4f8203bd..f96549a734a789058dadc93c8d96fa2a74bcded0 100644 (file)
--- 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 () {