jaquadro / LilyPath

A 2D path and shape drawing library for MonoGame and XNA.
MIT License
93 stars 12 forks source link

Fix infinite loop in triangulator #18

Open sk-zk opened 4 years ago

sk-zk commented 4 years ago

Adds an exit condition if no ears can be made for two consecutive iterations. This prevents the triangulator from going into an infinite loop for certain inputs.