uCircleFromNormal.py

from pygeo import *

v=display(scale=3, camera_vector=(0,1,-1))


p1=rFreePoint(0,.7,-.3,color=BLUE)
p2=rPoint(-1,-2,color=BLUE)

uCircleFromNormal(p2,p1,color=RED)

#refences objects
sphere=uSphere()
Plane(p2,p1,grid_scale=10,color=LIGHTGRAY,linewidth=.005)
rLine(p1,p2,color=WHITE)
v.pickloop()