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

Namespaces

namespace  hmap

Functions

Array hmap::elevation_from_contours (glm::ivec2 shape, const std::vector< Path > &contours, const std::vector< float > &elevations, const Array *p_probability=nullptr, float randomness=1.f, std::uint32_t seed=0, float peak_ratio=0.5f, float outside_ratio=1.f, bool smoothstep=false, const UvRect &uv_rect=UvRect::unit())
 Synthesize a heightmap from sparse closed iso-contours with known elevations using stochastic front propagation (proof of concept).
Array hmap::elevation_from_contours (const Array &contours, const Array *p_probability=nullptr, float randomness=1.f, std::uint32_t seed=0, float peak_ratio=0.5f, float outside_ratio=1.f, bool smoothstep=false)
 Synthesize a heightmap from a raster of sparse iso-contours with known elevations using stochastic front propagation.