HighMap library (C++)
Loading...
Searching...
No Matches
thermal_erosion.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::gpu
9{
10
30void thermal(Array &z,
31 const Array &talus,
32 int iterations = 10,
33 const Array *p_bedrock = nullptr,
34 Array *p_deposition_map = nullptr);
35
37void thermal(Array &z,
38 const Array *p_mask,
39 const Array &talus,
40 int iterations = 10,
41 const Array *p_bedrock = nullptr,
42 Array *p_deposition_map = nullptr);
43
45void thermal(Array &z,
46 float talus,
47 int iterations = 10,
48 const Array *p_bedrock = nullptr,
49 Array *p_deposition_map = nullptr);
50
67void thermal_auto_bedrock(Array &z,
68 const Array &talus,
69 int iterations = 10,
70 Array *p_deposition_map = nullptr);
71
72void thermal_auto_bedrock(Array &z,
73 const Array *p_mask,
74 const Array &talus,
75 int iterations = 10,
76 Array *p_deposition_map = nullptr);
77// @overload
78
80void thermal_auto_bedrock(Array &z,
81 float,
82 int iterations = 10,
83 Array *p_deposition_map = nullptr);
84
96void thermal_conserve(Array &z,
97 const Array &talus,
98 int iterations = 10,
99 float rate = 0.5f,
100 const Array *p_bedrock = nullptr,
101 Array *p_deposition_map = nullptr);
102
104void thermal_conserve(Array &z,
105 const Array *p_mask,
106 const Array &talus,
107 int iterations = 10,
108 float rate = 0.5f,
109 const Array *p_bedrock = nullptr,
110 Array *p_deposition_map = nullptr);
111
113void thermal_conserve(Array &z,
114 float talus,
115 int iterations = 10,
116 float rate = 0.5f,
117 const Array *p_bedrock = nullptr,
118 Array *p_deposition_map = nullptr);
119
129void thermal_flatten(Array &z,
130 const Array &talus,
131 int iterations,
132 float sigma_inf = 0.5f,
133 float sigma_sup = 0.f);
134
136void thermal_flatten(Array &z,
137 const Array *p_mask,
138 const Array &talus,
139 int iterations,
140 float sigma_inf = 0.5f,
141 float sigma_sup = 0.f);
142
150void thermal_olsen(Array &z, const Array &talus, int iterations);
151
153void thermal_olsen(Array &z,
154 const Array *p_mask,
155 const Array &talus,
156 int iterations);
157
171void thermal_inflate(Array &z, const Array &talus, int iterations = 10);
172
174void thermal_inflate(Array &z,
175 const Array *p_mask,
176 const Array &talus,
177 int iterations = 10);
178
191void thermal_rib(Array &z, int iterations);
192
194void thermal_rib(Array &z, const Array *p_mask, int iterations);
195
210void thermal_ridge(Array &z,
211 const Array &talus,
212 int iterations = 10,
213 Array *p_deposition_map = nullptr);
214
216void thermal_ridge(Array &z,
217 const Array *p_mask,
218 const Array &talus,
219 int iterations = 10,
220 Array *p_deposition_map = nullptr);
221
238void thermal_schott(Array &z,
239 const Array &talus,
240 int iterations = 10,
241 float intensity = 0.2f,
242 Array *p_deposition_map = nullptr);
243
245void thermal_schott(Array &z,
246 const Array *p_mask,
247 const Array &talus,
248 int iterations = 10,
249 float intensity = 0.2f,
250 Array *p_deposition_map = nullptr);
251
261void thermal_scree(Array &z,
262 const Array &talus,
263 const Array &zmax,
264 int iterations = 10,
265 Array *p_deposition_map = nullptr);
266
268void thermal_scree(Array &z,
269 const Array *p_mask,
270 const Array &talus,
271 const Array &zmax,
272 int iterations = 10,
273 Array *p_deposition_map = nullptr);
274} // namespace hmap::gpu
Declaration of the Array class for 2D floating-point arrays with various mathematical operations and ...
Definition array_blending.hpp:225
void thermal_olsen(Array &z, const Array &talus, int iterations)
Apply thermal weathering erosion (Olsen model).
Definition thermal_gpu.cpp:471
void thermal_ridge(Array &z, const Array &talus, int iterations=10, Array *p_deposition_map=nullptr)
Apply thermal weathering erosion to give a ridge like effect.
Definition thermal_gpu.cpp:570
void thermal_auto_bedrock(Array &z, const Array &talus, int iterations=10, Array *p_deposition_map=nullptr)
Apply thermal weathering erosion with automatic determination of the bedrock.
Definition thermal_gpu.cpp:156
void thermal_rib(Array &z, int iterations)
Apply thermal erosion using a 'rib' algorithm.
Definition thermal_gpu.cpp:524
void thermal(Array &z, const Array &talus, int iterations=10, const Array *p_bedrock=nullptr, Array *p_deposition_map=nullptr)
Apply thermal weathering erosion.
Definition thermal_gpu.cpp:20
void thermal_schott(Array &z, const Array &talus, int iterations=10, float intensity=0.2f, Array *p_deposition_map=nullptr)
Applies the thermal erosion process with a uniform slope threshold (Schott model).
Definition thermal_gpu.cpp:634
void thermal_conserve(Array &z, const Array &talus, int iterations=10, float rate=0.5f, const Array *p_bedrock=nullptr, Array *p_deposition_map=nullptr)
Apply mass-preserving thermal weathering erosion.
Definition thermal_gpu.cpp:242
void thermal_flatten(Array &z, const Array &talus, int iterations, float sigma_inf=0.5f, float sigma_sup=0.f)
Apply iterative thermal flattening erosion on a heightmap.
Definition thermal_gpu.cpp:355
void thermal_scree(Array &z, const Array &talus, const Array &zmax, int iterations=10, Array *p_deposition_map=nullptr)
Performs thermal scree erosion on a heightmap.
Definition thermal_gpu.cpp:702
void thermal_inflate(Array &z, const Array &talus, int iterations=10)
Apply thermal weathering erosion to give a scree like effect.
Definition thermal_gpu.cpp:417