Hi, Alexander! If you can read Russian, you can look at http://numlab.blogspot.com/2011/06/gmsh-3d.html for detailed step-by-step instructions on how to build 3D mesh in Gmsh (sphere-in-cube geometry is considered, so it's almost your case!). Best regards, Mikhail Artemiev