/* ******************************************* Objekt Info: Emoji Wuerfel ******************************************* Version: 25.09.2022 khf ******************************************* */ //*************** Auswahl ************* // //***************************************** //*************** Libraries ************ //***************************************** //*************** Parameter ************* $fn=70; cube_size = 60; emoji_size = 30; emoji_height = 8; CS = cube_size / 2 - emoji_height / 2; font = "Arial"; emoji_1 = ": o"; //Ueberrascht emoji_2 = "; ]"; //Grinsen emoji_3 = ": )"; // Gluecklich emoji_4 = ":P"; // Zunge raus emoji_5 = ": ("; // Traurig emoji_6 = "| ("; // Generft color_1 ="blue"; color_2 ="LightCyan"; color_3 ="LightCyan"; /* :) Laecheln :P Zunge raus :D Grinsen :O Nach Luft schnappen ;) Zwinkern B) Sonnenbrille >:( Muerisch *-) Nachdenklich 8-) Verdreht ^o) Sarkastisch (^^^) Hai <(') Pinguin :] Roboter */ //***************************************** //************** Programm ************** module emoji(t) { color(color_1) linear_extrude(height = emoji_height) { text(t, size = emoji_size, font = font, halign = "center", valign = "center"); } } difference() { intersection() { color(color_2) cube([cube_size,cube_size,cube_size], center=true); color(color_3) sphere(d=cube_size+20); } // Emojis plazieren translate([CS, 0, 0]) rotate([90, 0, 90]) emoji(font=font,emoji_1); translate([0, -CS, 0]) rotate([90, 0, 0]) emoji(font=font,emoji_2); translate([0, 0, CS]) emoji(font=font, emoji_3); translate([0, 0, -CS - emoji_height]) emoji(font=font, emoji_4); translate([0, CS, 0]) rotate([90, 0, 180]) emoji(font=font,emoji_5); translate([-CS, 0, 0]) rotate([90, 0, -90]) emoji(font=font,emoji_6); }