1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-14 02:34:12 +02:00

scale 0.7

This commit is contained in:
Justin Lin
2021-08-23 15:16:39 +08:00
parent 52e43aa03c
commit 0810d86314

View File

@@ -5,37 +5,39 @@ use <hull_polyline2d.scad>;
text = "順暢"; text = "順暢";
font = "思源黑體 Heavy"; font = "思源黑體 Heavy";
font_size = 14; font_size = 14;
model = "both"; // [daruma, helmet, both] model = "helmet"; // [daruma, helmet, both]
if(model == "daruma") { scale(.7) {
difference() { if(model == "daruma") {
union() { difference() {
daruma(); union() {
wish_decoration(text, font, font_size); daruma();
wish_decoration(text, font, font_size);
}
translate([0, 0, -23])
linear_extrude(20)
square(100, center = true);
} }
translate([0, 0, -23])
linear_extrude(20)
square(100, center = true);
}
} else if(model == "helmet") { } else if(model == "helmet") {
scale(1.025) scale(1.03)
helmet(); helmet();
} }
else { else {
difference() { difference() {
union() { union() {
daruma(); daruma();
wish_decoration(text, font, font_size); wish_decoration(text, font, font_size);
}
translate([0, 0, -24.5])
linear_extrude(20)
square(100, center = true);
} }
translate([0, 0, -23])
linear_extrude(20)
square(100, center = true);
}
translate([0, 4, 55]) translate([0, 4, 55])
rotate([-20, 0, 0]) rotate([-20, 0, 0])
helmet(); helmet();
}
} }
module helmet() { module helmet() {