1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 04:20:27 +02:00

allow one word

This commit is contained in:
Justin Lin
2021-08-24 09:05:16 +08:00
parent e507f71619
commit d8122150a1

View File

@@ -144,6 +144,7 @@ module wish_decoration(text, font, font_size) {
$fn = 48;
translate([0, -2, 0])
render()
intersection() {
union() {
wish();
@@ -158,6 +159,19 @@ module wish_decoration(text, font, font_size) {
}
module wish() {
if(len(text) == 1) {
translate([0, -43, 21])
rotate([90, 0, 0])
linear_extrude(10, scale = .8)
text(
text,
font = font,
size = font_size,
valign = "center",
halign = "center"
);
}
else {
translate([0, -43, 29.5])
rotate([85, 0, 0])
linear_extrude(10, scale = .8)
@@ -180,6 +194,7 @@ module wish_decoration(text, font, font_size) {
halign = "center"
);
}
}
module decoration() {
translate([18, -38, 21])