Closed kukumberman closed 11 months ago
Thanks for the report! Usually this does not happen, but there might be some numerical bugs in the algorithm that cause this in certain situations!
I also found a stably repeating error if I draw 2 holes
696 -16
395 84
Polygon:
[[{"x":401,"y":-7},{"x":490,"y":-11},{"x":496,"y":88},{"x":418,"y":87},{"x":366,"y":124},{"x":536,"y":122},{"x":538,"y":-43},{"x":354,"y":-54}],[{"x":418,"y":87},{"x":401,"y":-7},{"x":354,"y":-54},{"x":366,"y":124}],[{"x":584,"y":-11},{"x":667,"y":-20},{"x":656,"y":84},{"x":585,"y":80},{"x":536,"y":122},{"x":695,"y":125},{"x":734,"y":-62},{"x":538,"y":-43}],[{"x":585,"y":80},{"x":584,"y":-11},{"x":538,"y":-43},{"x":536,"y":122}]]
Thanks @recoshet and @kukumberman for reporting this. I fixed these in version 1.4.0 and added regression tests based on your examples. It took me a while, but at least it's there!
Just playing in editor (if you move 2nd node on the path a little bit it will find correctly)
Coords
Polygon