====== Squelette ====== {{:capture_d_e_cran_2014-12-15_a_21.35.02.png?nolink&200|}} Voici le code pour un squelette (sans arc) : function main(){ return tout().scale(2,2,2).rotateX(-90); } function tout(){ return union (pieds(), union(torse(), bras()).translate([0,0,-2])); } function pieds(){ return union (cube ({size:[1.5,1.5,10]}), cube ({size:[1.5,1.5,10]}).translate([3,0,0])); } function bas_ventre(){ return cube ({size:[5.5,2,1.5]}).translate([-0.5,-0.5,12]); } function colonne_vertebrale(){ return union (cube ({size:[1.5,1,7]}).translate([1.5,0.5,13.5]), tete()); } function torse(){ return union (bas_ventre(), union(colonne_vertebrale(), ventre())); } function ventre(){ return union (cube ({size:[5.5,1.5,1.5]}).translate([-0.5,0,17.5]), cube ({size:[5.5,1.5,1]}).translate([-0.5,0,15.5])); } function bras(){ return union (cube({size:[1.5,5,1.5]}).translate([-1.5,-3.5,17.5]), cube({size:[1.5,5,1.5]}).translate([4.5,-3.5,17.5])); } function tete(){ return difference (cube({size:[4.5,2.5,4.5]}).translate([0,-1,21.5]), visage()).translate([0,0,-1]); } function visage(){ return union (yeux(), bouche()); } function yeux(){ return union (cube ({size:[1.25,1,0.625]}).translate([0.5,-1,23.5]), cube ({size:[1.25,1,0.625]}).translate([2.75,-1,23.5])); } function bouche(){ return cube ({size:[3.5,1,0.625]}).translate([0.5,-1,22]); }