1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00

add nose param

This commit is contained in:
Justin Lin 2021-08-24 16:46:54 +08:00
parent 7aad397860
commit b79131f9bc
2 changed files with 12 additions and 8 deletions

View File

@ -4,14 +4,15 @@ use <multi_line_text.scad>;
text = "順暢";
font = "思源黑體 Heavy";
font_size = 15;
nose = true;
smoothing = false; // warning: previewing is slow if it's true.
scale(smoothing ? 0.985 : 1)
daruma();
daruma(nose);
wish_decoration(text, font, font_size);
module daruma() {
module daruma(nose) {
radius = 10;
module body() {
@ -114,10 +115,12 @@ module daruma() {
eye();
// nose
translate([0, -3.75 * radius, radius * 4.85])
rotate([67.5, 0, 0])
linear_extrude(radius / 4, scale = 0.9)
circle(radius * 0.4);
if(nose) {
translate([0, -3.75 * radius, radius * 4.85])
rotate([67.5, 0, 0])
linear_extrude(radius / 4, scale = 0.9)
circle(radius * 0.4);
}
}
if(smoothing) {

View File

@ -5,13 +5,14 @@ use <hull_polyline2d.scad>;
text = "順暢";
font = "思源黑體 Medium";
font_size = 15;
nose = true;
model = "both"; // [daruma, helmet, both]
scale(.7) {
if(model == "daruma") {
difference() {
union() {
daruma();
daruma(nose);
wish_decoration(text, font, font_size);
}
translate([0, 0, -23])
@ -26,7 +27,7 @@ scale(.7) {
else {
difference() {
union() {
daruma();
daruma(nose);
wish_decoration(text, font, font_size);
}
translate([0, 0, -24.5])