mobInversePole.py

from pygeo import *

v=display(scale=4, camera_vector=(0,2.2,-1))


zp1=zFreePoint(1,1,color=WHITE)
zp2=zFreePoint(-1,-2,color=WHITE)

zcircle1=zCircle(zp1,zp2,color=WHITE)

mob=mobRotate(zp1,PI/3,[zcircle1],color=BLUE)

inversepole=mobInversePole(mob,color=RED,pointsize=.15)

#reference objects

pole=mobPole(mob,color=WHITE)

mob1=mobFixed(mob,color=WHITE,fixed=0)
mob2=mobFixed(mob,color=WHITE,fixed=1)
l1=zLine(pole,mob1,color=WHITE)
l2=zLine(inversepole,mob2,color=WHITE)
l3=zLine(pole,mob2,color=WHITE)
l4=zLine(inversepole,mob1,color=WHITE)

zPlane(color=LIGHTGRAY)
v.pickloop()