u_to_zCirclePencil.py

from pygeo import *
v=display(scale=5, camera_vector=(0,.5,-.2))
u=uSphere()

n=uSlider(theta = PI/3,phi=PI/3,color=WHITE)
s=uSlider(theta=-PI/2,phi=PI/4,color=WHITE)

line=rLine(n,s,seg=True,color=WHITE)
planes=PlaneArray(line,color=WHITE,level=2)

u_pencil=uCirclePencil(planes,color=BLUE)
u_to_zCirclePencil(u_pencil,color=RED)

v.pickloop()