SpheresIntersect.py

from pygeo import *

v=display(scale=70)

p1 = FreePoint(-19,4,-3,color=WHITE)
p2 = FreePoint(-40,6,4,color=WHITE)

sphere1=Sphere(p1,p2,color=BLUE,style=FILL)

p3 = FreePoint(4,0,-3,color=WHITE)
p4 = FreePoint(6,-2,11,color=WHITE)
sphere2=Sphere(p3,p4,color=BLUE,style=FILL)

SpheresIntersect(sphere1,sphere2,color=RED,linewidth=1)

v.pickloop()