taille_cube =30;
 rayon_sphere=20;
 position_sphere=[15,15,15];
 
 difference(){
     color("MistyRose")
     cube([taille_cube,taille_cube,taille_cube]);
     
    translate(position_sphere)
     sphere(r=rayon_sphere);
 }
 
 // Paramètres de la sphère

 rayon_sphere = 20;  // Rayon de la sphère
 position=[15,15,15];

// Créer la sphère
 color("LightGrey")
 translate(position)
sphere(r = rayon_sphere);