Pyrogenesis trunk
|
Responsible for calculating territory boundaries, given an input territory map. More...
#include <TerritoryBoundary.h>
Static Public Member Functions | |
static std::vector< STerritoryBoundary > | ComputeBoundaries (const Grid< u8 > *territories) |
Computes and returns all territory boundaries on the provided territory map (see STerritoryBoundary for a definition). More... | |
Private Member Functions | |
CTerritoryBoundaryCalculator () | |
Responsible for calculating territory boundaries, given an input territory map.
Factored out for testing.
|
inlineprivate |
|
static |
Computes and returns all territory boundaries on the provided territory map (see STerritoryBoundary for a definition).
The result includes both inner and outer territory boundaries. Outer boundaries have their points in CCW order, inner boundaries have them in CW order (because this matches the winding orders needed by the renderer to offset them inwards/outwards appropriately).