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

Namespaces

namespace  hmap
 

Functions

void hmap::helper_find_up_downslope (const Array &z, const Vec2< int > &ij, Vec2< int > &ij_dw, Vec2< int > &ij_up)
 
Path hmap::flow_stream (const Array &z, const Vec2< int > ij_start, const float elevation_ratio=0.5f, const float distance_exponent=2.f, const float upward_penalization=100.f)
 Computes the optimal flow path from a starting point to the boundary of a given elevation array.