$fn=80; // Dimensions du porte-clés keychain_length = 60; // Longueur totale keychain_width = 25; // Largeur keychain_thickness = 6; // Épaisseur cube_size=[keychain_length, keychain_width, keychain_thickness]; edge_radius = 1; // Diamètre du trou hole_diameter = 10; // Corps du porte-clés difference() { minkowski() { cube(cube_size, center=true); sphere(r = edge_radius); } /*cube([keychain_length, keychain_width, keychain_thickness], center = true);*/ translate([-(keychain_length/2 - hole_diameter), 0, 0]) cylinder(h = keychain_thickness + 3, d = hole_diameter, center = true); } // Texte sur le porte-clés translate([0, 0, keychain_thickness/2 + 0.1]) { linear_extrude(height = 2) text("Fablab!", valign="center", halign="center", size = 6); }