Open GliderGeek opened 5 years ago
Thanks for the spot! Will fix soon. Feel free to make a pull-request :)
Unfortunately dont have the time to make a PR right now, but it should be quite trivial to implement. You can use my example as a test case.
On Mon, 28 Jan 2019 at 12:03, Mike Smith notifications@github.com wrote:
Thanks for the spot! Will fix soon. Feel free to make a pull-request :)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lionfish0/earclip/issues/1#issuecomment-458086617, or mute the thread https://github.com/notifications/unsubscribe-auth/APXOicFargCDhT0pkdjm3nF2dc2TMQGWks5vHtjlgaJpZM4ZPaZR .
I think there is a mistake in the algorithm. The following points produce invalid triangles:
It seems that the algorithm only checks if points lie inside the proposed ear (not on it) In this example: ear (p1, p2, p3) is not rejected, while p4 lies on top of one each edges