HighMap library (C++)
Loading...
Searching...
No Matches
erosion_maps.hpp
Go to the documentation of this file.
1/* Copyright (c) 2023 Otto Link. Distributed under the terms of the GNU General
2 Public License. The full license is in the file LICENSE, distributed with
3 this software. */
4#pragma once
5
6#include "highmap/array.hpp"
7
8namespace hmap
9{
10
28void erosion_maps(Array &z_before,
29 Array &z_after,
30 Array &erosion_map,
31 Array &deposition_map,
32 float tolerance = 0.f);
33
58 float elevation_strength,
59 float slope_strength,
60 float slope_limit,
61 float zmin = 0.f,
62 float zmax = -1.f);
63
64} // namespace hmap
Declaration of the Array class for 2D floating-point arrays with various mathematical operations and ...
Array class, helper to manipulate 2D float array with "(i, j)" indexing.
Definition array.hpp:31
Definition opencv.hpp:20
Array generate_bedrock(const Array &z, float elevation_strength, float slope_strength, float slope_limit, float zmin=0.f, float zmax=-1.f)
Generates a modified bedrock heightmap from an input elevation array.
Definition generate_bedrock.cpp:12
void erosion_maps(Array &z_before, Array &z_after, Array &erosion_map, Array &deposition_map, float tolerance=0.f)
Computes erosion and deposition delta maps from terrain states before and after erosion.
Definition erosion_maps.cpp:12