Emboss case with text labels

This commit is contained in:
Matt McWilliams 2023-02-13 20:08:09 -05:00
parent 0c01eeb36e
commit 609f604e4c
1 changed files with 10 additions and 0 deletions

View File

@ -95,6 +95,9 @@ module case_top () {
translate([-2, 0, 0]) cube([24, 27, 20], center = true); translate([-2, 0, 0]) cube([24, 27, 20], center = true);
translate([35, 18, 0]) cylinder(r = R(ButtonD), h = 10, center = true, $fn = 40); translate([35, 18, 0]) cylinder(r = R(ButtonD), h = 10, center = true, $fn = 40);
translate([35, -18, 0]) cylinder(r = R(ButtonD), h = 10, center = true, $fn = 40); translate([35, -18, 0]) cylinder(r = R(ButtonD), h = 10, center = true, $fn = 40);
//text
translate([25, 15, -0.5]) rotate([0, 0, 90]) emboss("FWD >");
translate([25, -15, -0.5]) rotate([0, 0, 90]) emboss("< BWD");
} }
translate([0, 0, -2.9]) difference () { translate([0, 0, -2.9]) difference () {
rounded_cube([X - 5, Y - 5, 3], d = 7, center = true, $fn = 40); rounded_cube([X - 5, Y - 5, 3], d = 7, center = true, $fn = 40);
@ -102,6 +105,13 @@ module case_top () {
} }
} }
module emboss (string) {
letter = 4;
color("red") linear_extrude(10) {
text(string, size = letter, halign = "center", valign = "center", $fn = 64);
}
}
case_top(); case_top();
//case_bottom(); //case_bottom();