#4677 - sgeos - Sun Apr 06, 2003 9:24 pm
Do you suppose the stack would survive a recursive flood fill algorithm on a 32 by 32 map under the worst conditions? 64 by 64? I could always use an iterative approach:
unsigned short fill_map[0x1000];
unsigned long current_fill = 0;
I've actually never done a flood fill before. I don't need to keep track of 64 * 64 points in an iterative solution. Time to work on this. At any rate, any thoughts on the recursive method?
-Brendan
unsigned short fill_map[0x1000];
unsigned long current_fill = 0;
I've actually never done a flood fill before. I don't need to keep track of 64 * 64 points in an iterative solution. Time to work on this. At any rate, any thoughts on the recursive method?
-Brendan