I have some code which generates a series of polygons and am having trouble getting some of them to render properly. This is because the simulator keeps complaining…
WARNING: Polygon could not be generated. The polygon outline is invalid, possibly due to holes or self-intersection.
What I can’t find it is why it’s saying this. Obviously all the points in the polygon can be dumped to the console, various things can be done to smooth the polygon out, etc, but actually finding out what the sim is referring to is very difficult.
How do you solve these problems? Do you have any tricks that are worth sharing?