mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-10 16:54:23 +02:00
allow one word
This commit is contained in:
@@ -144,6 +144,7 @@ module wish_decoration(text, font, font_size) {
|
|||||||
$fn = 48;
|
$fn = 48;
|
||||||
|
|
||||||
translate([0, -2, 0])
|
translate([0, -2, 0])
|
||||||
|
render()
|
||||||
intersection() {
|
intersection() {
|
||||||
union() {
|
union() {
|
||||||
wish();
|
wish();
|
||||||
@@ -158,27 +159,41 @@ module wish_decoration(text, font, font_size) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module wish() {
|
module wish() {
|
||||||
translate([0, -43, 29.5])
|
if(len(text) == 1) {
|
||||||
rotate([85, 0, 0])
|
translate([0, -43, 21])
|
||||||
linear_extrude(10, scale = .8)
|
rotate([90, 0, 0])
|
||||||
text(
|
linear_extrude(10, scale = .8)
|
||||||
text[0],
|
text(
|
||||||
font = font,
|
text,
|
||||||
size = font_size,
|
font = font,
|
||||||
valign = "center",
|
size = font_size,
|
||||||
halign = "center"
|
valign = "center",
|
||||||
);
|
halign = "center"
|
||||||
|
);
|
||||||
translate([0, -42.5, 12])
|
}
|
||||||
rotate([105, 0, 0])
|
else {
|
||||||
linear_extrude(10, scale = .8)
|
translate([0, -43, 29.5])
|
||||||
text(
|
rotate([85, 0, 0])
|
||||||
text[1],
|
linear_extrude(10, scale = .8)
|
||||||
font = font,
|
text(
|
||||||
size = font_size,
|
text[0],
|
||||||
valign = "center",
|
font = font,
|
||||||
halign = "center"
|
size = font_size,
|
||||||
);
|
valign = "center",
|
||||||
|
halign = "center"
|
||||||
|
);
|
||||||
|
|
||||||
|
translate([0, -42.5, 12])
|
||||||
|
rotate([105, 0, 0])
|
||||||
|
linear_extrude(10, scale = .8)
|
||||||
|
text(
|
||||||
|
text[1],
|
||||||
|
font = font,
|
||||||
|
size = font_size,
|
||||||
|
valign = "center",
|
||||||
|
halign = "center"
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module decoration() {
|
module decoration() {
|
||||||
|
Reference in New Issue
Block a user