# Is there a method to simplify RegionIntersection between 2 spheres?

I use RegionIntersection to find the circle between 2 spheres, but Mathematica returns :

RegionIntersection[
Sphere[Point[{-(1/4) Sqrt[3 + 6/Sqrt], -(Sqrt/4), Sqrt[
3/4 + 3/(2 Sqrt)]}], 0.3],
Sphere[{0, 0, 0}, 1/4 (Sqrt + Sqrt)]]


and not Cirlce[...] . And if it is not possible is there a way to display this intersection in a Graphics3D , Mathematica says "RegionIntersection is not a Graphics3D primitive or directive." Thank you.

• "not Circle[...]" - because Circle[] as it is currently defined in Mathematica cannot be used to represent an object living in three dimensions. If you want to see it, look at DiscretizeRegion[]. May 31, 2020 at 12:40

Do not use Graphics3D with regions. You cannot get Circle as simplified version, as it is 2D primitive in Wolfram Language (read docs on it), and you got 3D space. But the long expression you get after RegionIntersection is a 2D circle embedded in 3D:

Region[reg=RegionIntersection[
Sphere[{-(1/4) Sqrt[3+6/Sqrt],-(Sqrt/4),Sqrt[3/4+3/(2 Sqrt)]},.3],
Sphere[{0,0,0},1/4 (Sqrt+Sqrt)]],
Boxed->True,Axes->True,SphericalRegion->True] You can even compute its measure, which is 1D:

In[]:= RegionMeasure[reg]
Out[]= 1.87412

In[]:= ArcLength[reg]
Out[]= 1.87412


If you'd also like a solution that gives you the position, radius and orientation of the circle you can use this:

getcircle[s1_, s2_] :=
Block[{p1 = s1[], p2 = s2[], r1 = s1[], r2 = s2[],
d = EuclideanDistance[s2[], s1[]],
ori = Normalize[s2[] - s1[]]},
{(*orientation*) ori,
(*position*)p1 + ori*Sqrt[(d^2 + r1^2 - r2^2)^2/d^2]/2,
(*radius*)Sqrt[4 d^2 r2^2 - (d^2 - r1^2 + r2^2)^2]/(2 d)
}]

ms1 = Sphere[{-(1/4) Sqrt[3 + 6/Sqrt], -(Sqrt/4), Sqrt[3/4 + 3/(2 Sqrt)]}, 0.3];
ms2 = Sphere[{0, 0, 0}, 1/4 (Sqrt + Sqrt)];

{ori, pos, rad} = getcircle[ms2, ms1];
Graphics3D[{ Opacity[.25], ms1, ms2,
Opacity, Arrow[{pos, pos + ori}],
FaceForm[None], EdgeForm[{Thick, Blue}], • Replacing 0.3 by 3/10 in the above, one obtains the exact solution {-((Sqrt[3+6/Sqrt] (339/400+3/(2 Sqrt)+1/16 (3+6/Sqrt)+1/16 (Sqrt+Sqrt)^2))/(8 (15/16+3/(2 Sqrt)+1/16 (3+6/Sqrt)))),-((Sqrt (339/400+3/(2 Sqrt)+1/16 (3+6/Sqrt)+1/16 (Sqrt+Sqrt)^2))/(8 (15/16+3/(2 Sqrt)+1/16 (3+6/Sqrt)))),(Sqrt[3/4+3/(2 Sqrt)] (339/400+3/(2 Sqrt)+1/16 (3+6/Sqrt)+1/16 (Sqrt+Sqrt)^2))/(2 (15/16+3/(2 Sqrt)+1/16 (3+6/Sqrt)))}. for the center and the radius. May 31, 2020 at 17:38
• ^ which in turn simplifies to: {-Sqrt[(3*(23545 + 9691*Sqrt))/10]/200, -Sqrt[(3*(4163 + 273*Sqrt))/2]/200, Sqrt[(3*(23545 + 9691*Sqrt))/10]/100} May 31, 2020 at 20:07