Divooka Reference

Terrain Water

2 nodes

On this page 2

Fill

Function

Overload 1 of 2

Signature
Fill -> Terrain Water Result
    terrain: Scalar Field
    settings: Terrain Water Settings
TerrainWaterResult Fill(
    ScalarField2D terrain,
    TerrainWaterSettings settings)

Water from every source the settings enable, as a surface height and the masks a texture stack needs.

Parameters

nametypedefaultdescription
terrainScalar Field—Heights in metres, with a positive PhysicalScale (metres per cell).
settingsTerrain Water Settings—What to fill and how.

Returns

resultTerrain Water Result

Overload 2 of 2

Signature
Fill -> Terrain Water Result
    terrain: Scalar Field
    seaLevel: Number
    throughRiver: Truth
    riverDepthMetres: Number
    floodStageMetres: Number
TerrainWaterResult Fill(
    ScalarField2D terrain,
    double seaLevel = double.NaN,
    bool throughRiver = false,
    double riverDepthMetres = 1.5,
    double floodStageMetres = 0)

Water with the default settings: lakes filled to their spill height and the flat water the survey recorded, plus the sea below Sea Level, a river through the map's two deepest border notches, and a flood over the valley floors, when asked for.

Parameters

nametypedefaultdescription
terrainScalar Field—Heights in metres, with a positive PhysicalScale (metres per cell).
seaLevelNumberNaNSea level, metres; NaN for no sea.
throughRiverTruthFalseA river entering and leaving through the map's two deepest border notches, along the valley floor between them.
riverDepthMetresNumber1.5The through river's depth over its thalweg.
floodStageMetresNumber0Flood every valley floor this high above its channel; 0 floods nothing.

Returns

resultTerrain Water Result
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water
Package
Procedural Generation

Height Above Nearest Drainage

Function

Height above nearest drainage (HAND), metres: each cell's height above the first channel cell its water reaches along single-flow drainage on the depression-filled surface. Near 0 on valley floors whatever their elevation, large on ridges; the measure flood mapping uses to say which ground a river's stage covers.

Signature
HeightAboveNearestDrainage -> Scalar Field
    terrain: Scalar Field
    channelCatchmentSquareKilometres: Number
ScalarField2D HeightAboveNearestDrainage(
    ScalarField2D terrain,
    double channelCatchmentSquareKilometres = 0.05)

Parameters

nametypedefaultdescription
terrainScalar Field—Heights in metres, with a positive PhysicalScale.
channelCatchmentSquareKilometresNumber0.05Catchment at which a channel starts.

Returns

resultScalar Field
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water
Package
Procedural Generation