Terrain Water
2 nodes
On this page 2
Fill
FunctionOverload 1 of 2
Signature
Fill -> Terrain Water Result
terrain: Scalar Field
settings: Terrain Water SettingsTerrainWaterResult Fill(
ScalarField2D terrain,
TerrainWaterSettings settings)Water from every source the settings enable, as a surface height and the masks a texture stack needs.
Parameters
| name | type | default | description |
|---|---|---|---|
| terrain | Scalar Field | — | Heights in metres, with a positive PhysicalScale (metres per cell). |
| settings | Terrain Water Settings | — | What to fill and how. |
Returns
| result | Terrain Water Result |
Overload 2 of 2
Signature
Fill -> Terrain Water Result
terrain: Scalar Field
seaLevel: Number
throughRiver: Truth
riverDepthMetres: Number
floodStageMetres: NumberTerrainWaterResult 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
| name | type | default | description |
|---|---|---|---|
| terrain | Scalar Field | — | Heights in metres, with a positive PhysicalScale (metres per cell). |
| seaLevel | Number | NaN | Sea level, metres; NaN for no sea. |
| throughRiver | Truth | False | A river entering and leaving through the map's two deepest border notches, along the valley floor between them. |
| riverDepthMetres | Number | 1.5 | The through river's depth over its thalweg. |
| floodStageMetres | Number | 0 | Flood every valley floor this high above its channel; 0 floods nothing. |
Returns
| result | Terrain 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
FunctionHeight 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: NumberScalarField2D HeightAboveNearestDrainage(
ScalarField2D terrain,
double channelCatchmentSquareKilometres = 0.05)Parameters
| name | type | default | description |
|---|---|---|---|
| terrain | Scalar Field | — | Heights in metres, with a positive PhysicalScale. |
| channelCatchmentSquareKilometres | Number | 0.05 | Catchment at which a channel starts. |
Returns
| result | Scalar Field |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Water
- Package
- Procedural Generation