Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Triangulator.triangulate out of memory error #737
I ran into the following out of memory error calling
I am able to reproduce this error with the snippet of code below:
It looks like in
Hi, thanks for the bug report!
That said, maybe it's about time we replaced the triangulation algorithm with something simpler, such as ear clipping.
I've checked in a workaround that will prevent Panda3D from entering an infinite loop and running out of memory. However, I believe the result will not be correct for an overlapping polygon like this.
I still think the triangulation algorithm must be replaced by something more robust, but I think that is a separate issue.
Thanks again for the report, and especially for the simple test case!