02-22-2004, 09:47 PM
Quote:Quote:So, it is a 2D array? Why not just loop through it and test each element...?
Because the fill starts with one point, and proceeds to surrounding, non-block points until there are no points left to fill.
But if you are looking for the most efficient way, a loop would be it.