The standard equation for a torus rotated about the $z$ axis is: $$(x^2+y^2+z^2+R^2-r^2)^2 = 4R^2 (x^2+y^2)$$
The cylinder of interest is parallel to the $x$ axis and offset along the $y$ axis by $R$:
$$z^2 +(y-R)^2=r^2$$
I'm trying to evaluate some function $H(x,y,z)$ over the surface created by the intersection of a torus and a cylinder as in https://i.stack.imgur.com/MxOLT.png. I'm aware that a solution exists (https://mathematica.stackexchange.com/questions/5968/plotting-implicitly-defined-space-curves), but I can't find a solution where the result is actually written fully.
From the intersection curve, I'm planning to find the ''shadow region'' $D$.
I'd like to evaluate the integral using the following standard surface integral method,
$$\int \int_S H(x,y,z) d \sigma = \int \int_D H(x,y,z) \frac{|{\nabla F}|}{|\nabla F\cdot p|} dA$$
I cannot manage to find intersection curve. My first three attempts just hung in both Maple and Matlab when trying to evaluate the integral.