====== Code OpenSCAD pour le piston ====== //rayon intérieur de la boîte supérieure rayonBSup = 40; //mm //dimensions du piston rayonC = rayonBSup; fondC = 10; //mm hauteurC = 30; epaisseurC = 10; //mm largeurEncoche = 6.001; //mm profondeurEncoche = 20; //mm profondeurEncoche2 = 30; //mm profondeur réelle : 25 mm epsilon = 0.001; //mm, pour pouvoir entrer dans la boite supérieure rotate([0, 180, 0]){ difference(){ cylinder(h = hauteurC + fondC, r1 = rayonC-epsilon, r2 = rayonC-epsilon, $fn = 1000, center = false); cylinder(h = hauteurC, r1 = rayonC - epaisseurC, r2 = rayonC - epaisseurC, $fn = 1000, center = false); translate([0, 0, 10]){ cube([2*rayonC, largeurEncoche, profondeurEncoche], center = true); cube([largeurEncoche, 2*rayonC, profondeurEncoche2], center = true); } } }