HighMap library (C++)
Loading...
Searching...
No Matches
forest_growth.hpp File Reference

Go to the source code of this file.

Classes

struct  hmap::InteractionMatrix
 Generic S x S matrix representing pair-wise interaction properties between species. More...
struct  hmap::ForestScaleSampler
 Helper for sampling spatial scaling maps over a 2D bounding box with blending. More...
struct  hmap::SpeciesLookup
 Helper for querying species traits and pairwise competition factors. More...

Namespaces

namespace  hmap

Functions

Forest hmap::grow_forest_competition_nn (const Forest &forest, const std::vector< Species > &species={}, const InteractionMatrix &competition_matrix={}, const Array &max_radius_scale={}, float max_radius_scale_strength=1.0f, bool prune_unviable=true, const BBox2D &bbox=BBox2D{})
 Adjusts tree radii based on nearest-neighbor distances and species competition constraints.
Forest hmap::grow_forest_competition_voronoi (const Forest &forest, const std::vector< Species > &species={}, const InteractionMatrix &competition_matrix={}, const Array &max_radius_scale={}, float max_radius_scale_strength=1.0f, bool prune_unviable=true, const BBox2D &bbox=BBox2D{})
 Adjusts tree radii based on Voronoi cell areas and species competition constraints.
Forest hmap::grow_forest_iterative (const Forest &forest, const std::vector< Species > &species={}, size_t iterations=10, float growth_rate=0.1f, const InteractionMatrix &competition_matrix={}, const Array &max_radius_scale={}, float max_radius_scale_strength=1.0f, bool prune_unviable=true, const BBox2D &bbox=BBox2D{}, const UvTile &region=UvTile::unit())
 Simulates iterative plant growth with neighborhood competition and mortality.
Forest hmap::grow_forest_soft_core (const Forest &forest, const std::vector< Species > &species={}, const InteractionMatrix &repulsion_distances={}, const InteractionMatrix &repulsion_strengths={}, size_t target_count=0, const Array &max_radius_scale={}, float max_radius_scale_strength=1.0f, uint32_t seed=0, const BBox2D &bbox=BBox2D{})
 Performs multi-species Strauss soft-core growth and thinning on an input forest.

Detailed Description