Like @Evgeni_Popov , I couldn’t figure out how to cap Lathe or use CreateCylinder to create this kind of shape.
Is this the intersection of two orthogonal wedges of a sphere? If so, I’ve got some code based on CSG2 that will create it. I’ll post after I clean it up. A single wedge is shown in this video.