threejs-worldgen
    Preparing search index...

    Interface PopulationCell

    One fine cell of the population grid.

    interface PopulationCell {
        area: number;
        cell: string;
        density: number;
        elevation: number;
        habitability: number;
        landUse: LandUse;
        light: number;
        population: number;
        position: [number, number];
        slope: number;
        water: number;
    }
    Index
    area: number

    Cell area on this world, m².

    cell: string

    H3 index.

    density: number

    People per km².

    elevation: number

    Ground height at the centre (local y), metres.

    habitability: number

    0…1 how good a place to live this is.

    landUse: LandUse

    Land use.

    light: number

    0…1 night-light brightness.

    population: number

    People living here (an integer; the cells sum to the region's total).

    position: [number, number]

    Centre in local [x, z], metres.

    slope: number

    Ground slope (rise/run).

    water: number

    0…1 access to fresh water or a coast.