Voici le code pour un ghast :
function main(){ return tout().scale([1.5,1.5,1.5]); } function tout(){ return difference (corps(), visage()); } function corps(){ return union (ventre(), pieds().rotateX([-15])). subtract(cube_bas()); } function ventre(){ return cube ({size:[15,15,15]}); } function pieds_devant(){ return union (cube({size:[2,2,11]}).translate([1,-1,14]), union (cube({size:[2,2,11]}).translate([6,-0.5,14]), cube({size:[2,2,11]}).translate([11,-2,14]))); } function pieds_derriere(){ return union (cube({size:[2,2,11]}).translate([1,6,16]), union (cube({size:[2,2,11]}).translate([6,7,16]), cube({size:[2,2,11]}).translate([11,7,16]))); } function pieds(){ return union(pieds_derriere(), pieds_devant()); } function visage(){ return union (cube ({size:[4,1,1]}).translate([2,0,5]), union (cube ({size:[4,1,1]}).translate([9,0,5]), cube ({size:[4,1,1]}).translate([5.5,0,10]))); } function cube_bas(){ return cube({size:[20,20,5]}).translate([0,0,23]); } ghast = main;