I want to write an algorithm that creates a polygon inside a hole made by a set of other polygons. It's something like a flood fill and it's like the "boundary" tool in Autocad.
The image shows an example: the algoritm should fill the enclosed white space in the center (after a click on it).
Any theory, pseudocode or examples would help a lot.
