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

Namespaces

namespace  hmap

Functions

void hmap::apply_gaussian_pushes (Array &array, const std::vector< GaussianPush > &pushes)
 Apply a sequence of truncated-Gaussian pushes to a heightmap.
Array hmap::sls_deformation (const Array &z, const std::vector< DeformationConstraint > &constraints, std::uint32_t seed, int iterations=200, int ir_min=4, int ir_max=64, int n_radii=7, float talus_max=0.f, int n_candidates=512, float p_best=0.65f, float top_fraction=0.1f, float tolerance=1e-3f, std::vector< GaussianPush > *p_pushes=nullptr)
 Deform a heightmap to satisfy a set of constraints using stochastic local search over truncated-Gaussian push operations.