HighMap library (C++)
Loading...
Searching...
No Matches
roads.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
12#pragma once
13
14#include "highmap/array.hpp"
15
16namespace hmap
17{
18
50Graph generate_network_alpha_model(const std::vector<float> &xc,
51 const std::vector<float> &yc,
52 const std::vector<float> &size,
53 Vec4<float> bbox,
54 const Array &z,
55 uint seed,
56 float alpha = 0.7f,
57 int n_dummy_nodes = 2500,
58 float dz_weight = 1.f,
59 const Array *p_weight = nullptr);
60
61} // namespace hmap
Declaration of the Array class for 2D floating-point arrays with various mathematical operations and ...
unsigned int uint
Definition array.hpp:14
Definition algebra.hpp:28
Graph generate_network_alpha_model(const std::vector< float > &xc, const std::vector< float > &yc, const std::vector< float > &size, Vec4< float > bbox, const Array &z, uint seed, float alpha=0.7f, int n_dummy_nodes=2500, float dz_weight=1.f, const Array *p_weight=nullptr)
Generate a large scale road network between "nodes" (or cities) using the alpha model.
Definition alpha_model.cpp:16