ArrayIntersect.py

from pygeo import *

v=display(scale=70)

p1 = FreePoint(-33.,-33,-3,color=WHITE)
p2 = FreePoint(-8,0,4,color=WHITE)
p3 = FreePoint(1,1,-11,color=WHITE)

plane=Plane(p1,p2,p3,color=WHITE)

p4 = Slider(plane,-14,16,41,color=WHITE)
p5=Slider(plane,11,-9,16)

la=LineArray(plane,p4,color=WHITE)
line=Line(p1,p2,color=WHITE)
pa=PointArray(line,la,color=WHITE)
lines1=LineArray(p3,pa,color=BLUE)
lines2=LineArray(plane,p5,color=BLUE)

ArrayIntersect(lines1,lines2,pointsize=1.5,color=RED)

v.pickloop()