I’ve got some extremely general (user-defined) Polygons, and I want to test that they do not overlap. Is there a clever way to do this? I could crawl along each segment between polygon vertices, checking pixel by pixel whether the line is contained in another polygon, but it seems a bit inelegant. Can anyone point me to a smarter method?
Performance, incidentally, is not an issue here, since I’ll only be doing this at startup - my polygons are map sectors defined in a text file.