Ceci est une ancienne révision du document !
Voici le code pour faire une toupie en 3D.
Attention : pour l'imprimer il faut la séparer en deux parties !
function main() { return cylinder({r: 1, h: 3, round: true}). union (sphere({r: 4}).translate ([0,0,4.5])). union (cylinder({r: 7, h: 1}).translate([0,0,4.5])). union (cylinder({r: 1, h: 7}).translate([0,0,5.5])); }