1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
This commit is contained in:
Justin Lin 2021-08-31 08:29:37 +08:00
parent 0494ef7f32
commit 3d1a4cbb33

View File

@ -25,24 +25,24 @@ color("DarkGray")
if(smoothing) { if(smoothing) {
minkowski() { minkowski() {
translate([0, h / 2, 0]) translate([0, h / 2, 0])
moai(emoticon, font, font_size, h, face, face_step, nose, nose_step); emoticon_moai(emoticon, font, font_size, h, face, face_step, nose, nose_step);
sphere(smoothing_r); sphere(smoothing_r);
} }
} }
else { else {
translate([0, h / 2, 0]) translate([0, h / 2, 0])
moai(emoticon, font, font_size, h, face, face_step, nose, nose_step); emoticon_moai(emoticon, font, font_size, h, face, face_step, nose, nose_step);
} }
/* /*
translate([50, h / 2, 0]) translate([50, h / 2, 0])
moai("@xO", font, font_size, h, face, face_step, nose, nose_step); emoticon_moai("@xO", font, font_size, h, face, face_step, nose, nose_step);
translate([-50, h / 2, 0]) translate([-50, h / 2, 0])
moai("$___$", font, font_size, h, face, face_step, nose, nose_step); emoticon_moai("$___$", font, font_size, h, face, face_step, nose, nose_step);
*/ */
module moai(emoticon, font, font_size, h, face = 18, face_step = 3, nose = 4, nose_step = 1) { module emoticon_moai(emoticon, font, font_size, h, face = 18, face_step = 3, nose = 4, nose_step = 1) {
profile = [ profile = [
for(p = [ for(p = [
// back // back