I am trying to get a half an elliptic torus lie along half a spheroid so that they meet at a curve along the whole surface. I need a general way to find such intersecting surfaces. By elliptic torus, I mean that a circle goes travels through the path of an ellipse.
Here is some Mathematica code for half an elliptic torus:
ParametricPlot3D[{(4 + Cos[$\theta$]) Cos[$\phi$], (2 + Cos[$\theta$]) Sin[$\phi$], Sin[$\theta$]}, {$\theta$, 0, 2 $\pi$}, {$\phi$, 0, $\pi$}]
And then a half a spheroid is right here:
ParametricPlot3D[{2 Cos[$\phi$] Sin[$\theta$], 2 Sin[$\theta$] Sin[$\phi$], Cos[$\theta$]}, {$\phi$, -$\pi$, $\pi$}, {$\theta$, 0, $\pi$/2}]
I am not sure how to mathematically do this. Any reasoning for solution would be much appreciated. I did an approximation using a hemisphere and a torus cut in half so you can understand the orientation. This way you can understand the required orientation.

