/*//////////////////////////////////////////////////////////// SD carte étui "SOPHIE" "BERNARD" (paramétrable avec correction 'corr') ESSAI D'éCRITURES sur toutes les faces Carrefour Numérique² La Villette PARIS Bernard modification d'un fichier existant 26 février 2018 Modif 26/2 : + variable 'corr' correction diam.outil!!! F6 = OK 14mn 2s Carte SD: 31,94 x 23,94 x 2,06 ; microSD: 15,02 x 11 x 0,74/1 */ /////// Variables //////////// corr = 0.25; // -- ATTENTION -- A REGLER selon essai x = 23.94 ; x1 = x+corr; // Cotes intérieures x, y, z y = 2.06 ; y1 = y+corr; z = 31.90 ; z1 = z+corr; font1 = "Arial"; $fn=20; carh=2; carprof = 3; content1 = "FABLAB"; // content1 = "TEXTE"; content2 = "2020 / 02"; echo ("X=",x1,"Y=",y1,"Z=",z1); // Ctrl cotes interieures après correction ////// PROGRAMME /////////////// // difference(){ // Diff. coupe difference(){ difference(){ minkowski(){ // arrondi des angles // cube([x1+1, y1+1, z1],center=true); cube([x1, y1, z1],center=true); sphere(1); // (1.5) } // cotes clé [long12.08,larg4.56,haut12] translate([0,0,2.5]){ cube([x1, y1, z1*1.1],center=true); } translate([0,0,3+z1/2]){ rotate([90,0,0]){ cylinder(d=14, h=10, center=true); } } } // ECRITURE : Face AVANT Diagonale 'prénom' translate ([7,y1-0.6,-15]) { // translate ([5,y1-0.6,-13]) { rotate ([90,-45,180]) { // color(c=[0.25,0.25,0.5,1]) { linear_extrude(height = carh) { text(content1, font = font1, size = 3.5, direction = "ltr", spacing = 1.1 ); } } } // AVANT Paris translate ([-2,y1-0.6,-14]) { rotate ([90,-0,180]) { // color(c=[0.25,0.25,0.5,1]) { linear_extrude(height = carh) { text("PARIS", font = font1, size = 2.2, direction = "ltr", spacing = 1 ); } } } // AVANT Carf Num translate ([10.5,y1-0.6,9]) { rotate ([90,-0,180]) { linear_extrude(height = carh) { text("Carrefour Numérique²", font = font1, size = 1.5, direction = "ltr", spacing = 1 ); } } } // AVANT Cité translate ([10,y1-0.6,2.6]) { rotate ([90,-15,180]) { linear_extrude(height = carh) { text("Cité des Sciences", font = font1, size = 1.5, direction = "ltr", spacing = 0.85 ); } } } // AVANT content2 Villette translate ([9.5,y1-0.6,-4.5]) { rotate ([90,-30,180]) { linear_extrude(height = carh) { text("Porte de la Villette", font = font1, size = 1.5, direction = "ltr", spacing = 1 ); } } } // Arrière HAUT translate ([-7,-y1+0.5,4.8]) { rotate ([90,0,0]) { linear_extrude(height = carh) { text("SD carte", font = font1, size = 2.5, direction = "ltr", spacing = 1 ); } } } // Arrière Milieu translate ([-7,-y1+0.5,-4]) { rotate ([90,0,0]) { linear_extrude(height = carh) { text(content2, font = font1, size = 2.5, direction = "ltr", spacing = 1 ); } } } // Arrière BAS translate ([-11,-y1+0.5,-12]) { rotate ([90,0,0]) { linear_extrude(height = carh) { text("V4 - Corr=0.25", font = font1, size = 2.5, direction = "ltr", spacing = 1 ); } } } // DESSOUS Bernard translate ([10,-1.2,-16]) { rotate ([180,0,180]) { linear_extrude(height = carh) { text("BRNRD77", font = font1, size = 2.5, direction = "ltr", spacing = 1.24 ); } } } } // --- FIN DE PROGRAMME --- F6=13mn 45" /* // Pour coupe de control // translate([0,0,-10]){cube(15,center=true); } } // Diff. coupe FIN // */ // --- FIN DE FICHIER ---