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

Namespaces

namespace  hmap

Functions

Array hmap::flow_accumulation_dinf (const Array &z, float talus_ref=0.1f, int iterations=0, const UvTile &region={}, ICommunicator &comm=SingleArrayComm::instance())
 Computes the flow accumulation for each cell using the Multiple Flow Direction (MFD) model.
Array hmap::flow_accumulation_dinf_perturbed (const Array &z, float talus_ref, int nsamples, glm::vec2 kw, std::uint32_t seed, float amp, const Array *p_perturb_scaling=nullptr, const UvRect &uv_rect=UvRect::unit(), int iterations=0, const UvTile &region={}, ICommunicator &comm=SingleArrayComm::instance())
 Computes averaged D-infinity flow accumulation with terrain perturbations.
std::vector< Array > hmap::flow_direction_dinf (const Array &z, float talus_ref)
 Computes the flow direction and weights for each direction using the Multiple Flow Direction (MFD) model.
std::vector< float > hmap::flow_direction_dinf_flat (const Array &z, float talus_ref)
Array hmap::flow_direction_dinf_angle (const Array &z, float talus_ref)
 Computes the flow direction using the Multiple Flow Direction (MFD) model.