I have the equations of two spheres in MATLAB, like
(x-x0)^2+(y-y0)^2+(z-z0)^2=R0^2
(x-x1)^2+(y-y1)^2+(z-z1)^2=R1^2
They have an intersecting part (I find a similar picture which could explain my meaning on the web like below)
Now I would like to only draw the spatial intersecting volume of these two spheres (like the 3D part between the curved faces with red lines in the sample image above)
Maybe I could use the command 'surface'
in MATLAB to draw out those two curved faces which make up the intersecting volume? I do not know how to do it....
Moreover, I also would like to draw these two spheres after erasing out those intersecting parts
That is, my goal: drawing out the intersecting and non-intersecting part of these two spheres individually.
Could anyone help me?
Thank you!