/*/////////////////////////////////////////////////////////////////////// CAPUCHON : USB - HDMI -- éTUI : SD CARTE (paramétrable avec correction 'corr') xxxxx ATTENTION : 1ère UTILISATION METTRE LA CARTE SD AVEC PRUDENCE xxxxx xxxxx NE PAS FORCER xxxxx si trop juste augmenter la variable 'corr' (mes impressions corr = 0.15 ou 0.20) et ESSAI D'éCRITURES sur toutes les faces (pour jouer) FABLAB Carrefour Numérique² Cité des Sciences et de l'Industrie Porte de la Villette PARIS BRNRD77 modification du fichier existant "Porte clé USB" d' Olive début le 8 février 2018 Modif 26/2 : + variable 'corr' correction 'matiere'!!! Pour information, à vérifier sur votre matériel (X x Y x Z[h])= Carte SD: 23.94 x 2.06 x 31.94 ; microSD: 15.02 x 0.74/1 x 11 Clé USB : 12.08 x 4.56 x 12 ; Micro USB: 11 x 0.8 x 15 prise HDMI: 13.92 x 4.50 x 9.5 /////// VARIABLES A SAISIR *//////////// corr = 0.15; // -- ATTENTION -- A REGLER selon essai x = 12.08 ; x1 = x+corr; // Cotes intérieures x, y, z y = 4.56 ; y1 = y+corr; z = 12 ; z1 = z+corr; font1 = "Arial"; $fn=20; carh=2; carprof = 3; prenom = "Fablab"; date = "2018 / 05"; model = "USB Clé"; correction = "Corr = 0.15"; echo (); echo ("Cotes intérieures corrigées:","X=",x1,"Y=",y1,"Z=",z1); echo (); /////////// PROGRAMME /////////////////// //difference(){ // Diff. pour coupe de CTRL difference(){ difference(){ minkowski(){ // arrondi des angles cube([x1+1, y1+1, z1],center=true); sphere(1.5); } // cotes intérieures corrigées : translate([0,0,2.5]){#cube([x1, y1, z1*1.1],center=true);} /*SI nécéssaire mettre en commentaire pour les capuchons : dégagement pour retrait ,indispensable pour les étuis SD, etc...*/ translate([0,0,3+z1/2+10]){ rotate([90,0,0]){#cylinder(d=14, h=10, center=true);} } // FIN commentaire pour les capuchons } // ECRITURE : Face AVANT Diagonale 'prénom' translate ([4.5,y1-0.5,-6.5]) { rotate ([90,-45,180]) { // color(c=[0.25,0.25,0.5,1]) { linear_extrude(height = carh) { text(prenom, font = font1, size = 2.2, direction = "ltr", spacing = 1.3 ); } } } // AVANT Paris translate ([1.8,y1-0.5,-6.3]) { rotate ([90,-0,180]) { // color(c=[0.25,0.25,0.5,1]) { linear_extrude(height = carh) { text("PARIS", font = font1, size = 1.5, direction = "ltr", spacing = 1 ); } } } // AVANT Carf Num translate ([6.3,y1-0.5,5.2]) { rotate ([90,-0,180]) { linear_extrude(height = carh) { text("Carrefour Numérique²", font = font1, size = 1, direction = "ltr", spacing = 0.9 ); } } } // AVANT Cité translate ([6,y1-0.5,-0]) { rotate ([90,-22,180]) { linear_extrude(height = carh) { text("Cité des Sciences", font = font1, size = 1, direction = "ltr", spacing = 0.85 ); } } } // AVANT content2 Villette translate ([-5.2,y1-0.5,4.8]) { rotate ([90,90,180]) { linear_extrude(height = carh) { text("Porte de la Villette", font = font1, size = 1, direction = "ltr", spacing = 1 ); } } } // Arrière HAUT translate ([-4.5,-y1+1.2,4.8]) { rotate ([90,25,0]) { linear_extrude(height = carh) { text(prenom, font = font1, size = 2.2, direction = "ltr", spacing = 1 ); } } } // Arrière BAS translate ([-4,-y1+1.2,-6.7]) { rotate ([90,-25,0]) { linear_extrude(height = carh) { text(prenom, font = font1, size = 2.2, direction = "ltr", spacing = 1 ); } } } // Arrière Capuchon translate ([-6.5,-y1+1.2,-0.5]) { rotate ([90,0,0]) { linear_extrude(height = carh) { text("Capuchon", font = font1, size = 1.5, direction = "ltr", spacing = 1 ); } } } // Arrière USB translate ([-6.5,-y1+1.2,-2.3]) { rotate ([90,0,0]) { linear_extrude(height = carh) { text(model, font = font1, size = 1.5, direction = "ltr", spacing = 1 ); } } } // Coté gauche translate ([x1-5,0.7,-5]) { rotate ([90,-90,90]) { linear_extrude(height = carh) { text(model, font = font1, size = 1.5, direction = "ltr", spacing = 1 ); } } } // Coté droit translate ([-x1+5,-0.7,-5]) { rotate ([90,-90,-90]) { linear_extrude(height = carh) { text (date, font = font1, size = 1.5, direction = "ltr", spacing = 1 ); } } } // DESSOUS 'corr =' translate ([6.5,-0.9,-z1+5.5]) { rotate ([180,0,180]) { linear_extrude(height = carh) { text(correction, font = font1, size = 2, direction = "ltr", spacing = 1 ); } } } } // --- FIN DE PROGRAMME --- /* Pour coupe de control translate([0,0,-10]){ cube(18,center=true); } */ // } // FIN Diff. coupe CTRL // --- FIN DE FICHIER ---