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.
It does even appear to do some bounding box type first pass checking even.
I’m the last one to worry about elite performance code! ;D You must be thinking of the demo producers, elegant maintainable code is where its at :-*