HighMap library (C++)
Loading...
Searching...
No Matches
rock_distribution.hpp
Go to the documentation of this file.
1/* Copyright (c) 2026 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
9#pragma once
10
11#include <cstdint>
12#include <string>
13
15
16namespace hmap
17{
18
25{
26 uint32_t class_id = 0;
27 std::string name = "";
28 float radius_min = 1e-3f;
29 float radius_max = 5e-2f;
30 float power_law_alpha = 2.0f;
31 float embed_ratio = 0.2f;
32
33 RockDistribution() = default;
34
36 float radius_min = 1e-3f,
37 float radius_max = 5e-2f,
38 float power_law_alpha = 2.0f,
39 float embed_ratio = 0.2f,
40 const std::string &name = "")
42 name(name),
47 {
48 }
49};
50
51} // namespace hmap
Definition opencv.hpp:20
float radius_max
Maximum rock radius.
Definition rock_distribution.hpp:29
RockDistribution(uint32_t class_id, float radius_min=1e-3f, float radius_max=5e-2f, float power_law_alpha=2.0f, float embed_ratio=0.2f, const std::string &name="")
Definition rock_distribution.hpp:35
uint32_t class_id
Rock material / mesh class identifier.
Definition rock_distribution.hpp:26
float radius_min
Minimum rock radius.
Definition rock_distribution.hpp:28
float power_law_alpha
Power-law / Pareto size exponent (typically in [1.5, 3.0]).
Definition rock_distribution.hpp:30
float embed_ratio
Ratio of rock embedded into the ground [0, 1].
Definition rock_distribution.hpp:31
std::string name
Optional descriptive name (e.g., "Granite Boulder").
Definition rock_distribution.hpp:27