HighMap library (C++)
Loading...
Searching...
No Matches
flow_fixing.cpp File Reference

Namespaces

namespace  hmap

Functions

Array hmap::flow_fixing (const Array &z, float riverbed_talus=0.f, int iterations=5, int prefilter_ir=8, bool carve_riverbed=true, float merging_distance=8.f, const Array *p_noise_r=nullptr)
Array hmap::flow_fixing_drainage_basin (const Array &z, bool fast_approx=false, float riverbed_talus=1e-4f, int iterations=3, bool carve_riverbed=false, float talus_riverbank=0.01f, float merging_distance=8.f, std::uint32_t seed=0, float noise_strength=0.f, const Array *p_noise_x=nullptr, const Array *p_noise_y=nullptr)
 Fixes flow paths and unwanted upslopes using a cell-based drainage basin tree network and elevation updates.