I was trying to make the following in TiKz
which I made using Mathematica
, which is the intersection of a sphere and cylinder similar to the Viviani's curve.
I want to highlight the shaded region of the intersection of a solid ball with a cylinder (the intersection is the blue curve and the region is the region bounded by the blue curve) which I was unable to make into TiKz. I don't have a good amount of knowledge of TiKz (still in learning process). I tried to change the code but unable to get the required one. Any help will be appreciated.
Thanks in advance.
Edit
I am not getting how the parameterization is being used in the code. I have the following parametrization: