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

Namespaces

namespace  hmap
 

Functions

void hmap::dig_path (Array &z, Path &path, int width=1, int decay=2, int flattening_radius=16, bool force_downhill=false, Vec4< float > bbox={0.f, 1.f, 0.f, 1.f}, float depth=0.f)
 Dig a path on a heightmap.
 
void hmap::dig_river (Array &z, const std::vector< Path > &path_list, float riverbank_talus, int river_width=0, int merging_width=0, float depth=0.f, float riverbed_talus=0.f, float noise_ratio=0.9f, uint seed=0, Array *p_mask=nullptr)
 Modifies the elevation array to carve a river along a specified path.
 
void hmap::dig_river (Array &z, const Path &path, float riverbank_talus, int river_width=0, int merging_width=0, float depth=0.f, float riverbed_talus=0.f, float noise_ratio=0.9f, uint seed=0, Array *p_mask=nullptr)