System for automatically defining continuous regions of rooms/corridors/water with unique identifiers.