threejs-worldgen
    Preparing search index...

    Interface Lake

    A lake: a filled depression.

    interface Lake {
        area: number;
        bounds: [col: number, row: number, cols: number, rows: number];
        level: number;
        mask: Uint8Array;
        maxDepth: number;
    }
    Index
    area: number

    Surface area, m².

    bounds: [col: number, row: number, cols: number, rows: number]

    Bounding box in grid cells: first column, first row, columns, rows.

    level: number

    Water surface height (the spill level of the depression), metres.

    mask: Uint8Array

    1 where the lake covers a cell of bounds (row-major within the box).

    maxDepth: number

    Deepest point below level, metres.