]> mj.ucw.cz Git - home-hw.git/commitdiff
BSB Case: Lettering
authorMartin Mares <mj@ucw.cz>
Sat, 29 Feb 2020 14:23:10 +0000 (15:23 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 29 Feb 2020 14:23:10 +0000 (15:23 +0100)
bsb/case/case.scad

index 59a942048a487082414fdaca76c183099155ac95..6298e511a4c0b270f5dcb37e0873d34ac9697eaf 100644 (file)
@@ -50,6 +50,7 @@ lid_screw_head_diam = 5.8;
 lid_screw_head_height = 2.8;
 lid_screw_holder_height = 4;   // includes lid_thickness
 // we want lid_screw_holder_height + (holder_depth + holder_tail_depth)/2 >= screw length (13 mm)
+text_depth = 1;
 
 over = 0.1;
 $fn = 50;
@@ -160,6 +161,8 @@ module lid() {
                        translate([pcb_width, pcb_length, 0])
                                lid_screw_holder();
                }
+
+               // Screw holes
                translate([0, 0, 0])
                        lid_screw_hole();
                translate([0, pcb_length, 0])
@@ -168,8 +171,15 @@ module lid() {
                        lid_screw_hole();
                translate([pcb_width, pcb_length, 0])
                        lid_screw_hole();
+
+               // Text
+               translate([pcb_width / 2, 10, -text_depth/2])
+               rotate(0)
+               scale([0.8, 0.8, 1])
+                       linear_extrude(text_depth + over, center = true)
+                       text("USB – BSB", font = "Liberation Serif", halign="center");
        }
 }
 
 bottom();
-// color([1, 0, 0]) translate([0, 0, box_height]) lid();
+color([1, 0, 0]) translate([0, 0, box_height]) lid();