Re: Large map arrays in Python?
That's perfectly fine, until you get into wanting to represent a complex set of cubes, or a shape that is not a cube.
For example:
[
[1,1], [4,1], [4,4],
[10,4], [10,10], [1,10]
]
Would require 2 blocks to show, whereas I just have one polygon.
Your method would be faster though, and is what you would get as a bounding box for the above polygon. The initial script would filter using the bounding box, then if you have a lot of complex shapes, then a second function would check to see what polygon you're in using a point in polygon function.
Are you saying that you have a gig of those rectangles? That's quite a few rectangles, why so many? Can you split them into chunks?
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector