Function veloren_world::sim::erosion::fill_sinks

source ยท
pub(crate) fn fill_sinks<F: Float + Send + Sync>(
    map_size_lg: MapSizeLg,
    h: impl Fn(usize) -> F + Sync,
    is_ocean: impl Fn(usize) -> bool + Sync,
) -> Box<[F]>
Expand description

The Planchon-Darboux algorithm for extracting drainage networks.

http://horizon.documentation.ird.fr/exl-doc/pleins_textes/pleins_textes_7/sous_copyright/010031925.pdf

See https://github.com/mewo2/terrain/blob/master/terrain.js