threejs-worldgen
    Preparing search index...

    Interface PopulationData

    Generated population: per-cell people and land use, plus settlements.

    interface PopulationData {
        cellEdge: number;
        cells: PopulationCell[];
        grid: HexGrid;
        index: Map<string, number>;
        neighbours: number[][];
        options: PopulationOptions;
        resolution: number;
        settlements: Settlement[];
        total: number;
    }
    Index
    cellEdge: number

    Average edge of a fine cell on this world, metres.

    Fine cells inside the region.

    grid: HexGrid

    The hex index (and the frame local positions are in).

    index: Map<string, number>

    Cell index → position in cells.

    neighbours: number[][]

    For each cell, the positions in cells of its (up to 6) neighbours inside the region: the hex graph.

    Settings it was generated with.

    resolution: number

    H3 resolution of cells.

    settlements: Settlement[]

    Settlements, ranked ones first (by size), then farmsteads.

    total: number

    People in the region (sum of cells[i].population).