//engrenage hauteur=20; diam_int=130; diam_ext=135; long=100; prof=20; epp=20; long2=20; prof2=5; epp2=20; hauteur2=10; diam_ext2=3; deb_ang= 265; pas_ang= 2; fin_ang= 445; axe = [0,0,1]; //anneau {translate([0,0,0]) difference() translate([0,0,0]) difference(){ {cylinder(hauteur,diam_ext,diam_ext,center=true, $fn=72); cylinder(hauteur,diam_int,diam_int,center=true, $fn=72);} translate([55,-10,-10]) {cube([long,prof,epp]);} } //angrenage for (angle =[deb_ang:pas_ang:fin_ang]) rotate(a=[0,0,angle]) translate([-135,-10,10]) rotate([0,180,0]) cylinder(20,3,3,$fn=3);} ; //attaches translate([129.5,-15,-10]) difference() {cube([long2,prof2,epp2]); rotate([90,0,0]) translate([11.5,10,0]) cylinder(hauteur2,diam_ext2,diam_ext2,center=true, $fn=72); } translate([129.5,10,-10]) difference() {cube([long2,prof2,epp2]); rotate([90,0,0]) translate([10,10,0]) cylinder(hauteur2,diam_ext2,diam_ext2,center=true, $fn=72);}