Crash with a relatively simple polygon
nirvn opened this issue · 5 comments
nirvn commented
The following polygon crashes poly2try:
The polygon is relatively simple. One particularity is the presence of two overlapping vertices here:
I'm including a .dat file that triggers the crash using testbed's p2t (i.e. ./p2t crash.dat
):
aismann commented
Have you check this:
- If you have a cyclic function that generates random points make sure you don't add the same coordinate twice.
- If you are given input and aren't sure same point exist twice you need to check for this yourself.
- Only simple polygons are supported. You may add holes or interior Steiner points
- Interior holes must not touch other holes, nor touch the polyline boundary
nirvn commented
aismann commented
If you are given input and aren't sure same point exist twice you need to check for this yourself.