draw hemisphere

I have to draw a hemisphere attached to another hemisphere,
like in the photo but stick perfectly to form a sphere.
is it possible to write python code to do it?
I need to do it by python and not manually because then I have to draw another 10000 hemispheres in different points of the space.
I know the radius of the hemispheres and the position of the center of the sphere.


you could try to create a sphere, and a cube, and then subtract the cube from the sphere using s4l_v1.model.Subtract([sphere, cube]) (or the other way around, I never know for sure... 😉 )

thank you! It works 🙂
I finally had to separate the two hemispheres because I wanted to impose a boundary condition on one sphere and a different boundary condition on the other, but if they were too close it didn't work.