-
When drawing individual tile edges, after a depth of 25 I get an error that the polygon edges do not intersect. Could this be a rounding error of the package? When I use infinite lines that have segment=False, I do not get this error anymore. The error occurs as the line function calls polygon formation: Then in Hypercycle, toDrawables and then Polygon, fromEdges is called and at the following line: the error is raised: polygon edges do not intersect. But I am just trying to draw a line from 2 points, the edges do not need to intersect because there is only one edge, how do I fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This sounds like a rounding error. Are you using The reason you get the polygon error is because the Why are you drawing polygons up to depth 25? Anything after 15 or so will be extremely tiny (smaller than a pixel) depending on the rendered resolution. |
Beta Was this translation helpful? Give feedback.
This sounds like a rounding error. Are you using
Integer
andRealNumber
to avoid rouding errors? This library hasn't been designed with special number types in mind so that may or may not help.The reason you get the polygon error is because the
hwidth
parameter converts your line into a hyperbolic "rectangle" before drawing it. Rounding error must be causing the computed sides of this rectangle to not quite intersect. One end of the line may be very close to the boundary of the Poincare disk.Why are you drawing polygons up to depth 25? Anything after 15 or so will be extremely tiny (smaller than a pixel) depending on the rendered resolution.