Ask Your Question

Filling a hyperbolic polygon

asked 2020-11-20 10:03:05 -0600

John L gravatar image

I am trying to draw some hyperbolic polygons in the Poincare disk model.

poincaredisc = HyperbolicPlane().PD()
lines = [ poincaredisc.get_geodesic(1,I), poincaredisc.get_geodesic(I,-1), poincaredisc.get_geodesic(1,-1) ]
plots = [ plot(line,axes=False) for line in lines ]

I'd like to fill it in with a solid color. This isn't documented in HyperbolicPlane as far as I can tell. But maybe there is some general-purpose way to do this with these kind of graphics objects. Any ideas?

edit retag flag offensive close merge delete


There is hyperbolic_polygon, but alas only for the upper half-space, I think..

FrédéricC gravatar imageFrédéricC ( 2020-11-20 11:10:46 -0600 )edit

1 answer

Sort by » oldest newest most voted

answered 2020-11-20 17:53:41 -0600

slelievre gravatar image

Progress on adapting hyperbolic polygons to other models is tracked at:

The code available in the commits posted there might cover your needs.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2020-11-20 10:03:05 -0600

Seen: 64 times

Last updated: Nov 20