On certain scenarios, a polygon cannot be only categorize as external/internal. One polygon can be external in relation to others inside itself, but internal to other containing it.
A hierarchical representation of polygon's function within a context could be implemented to avoid the black or white representation.