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

Namespaces

namespace  hmap

Functions

Array hmap::compute_poi_suitability_field (const Array &heightmap, PoiType type, const PoiGenerationOptions &options)
 Computes a normalized suitability/score field in [0, 1] for a given terrain feature type.
Cloud hmap::generate_points_of_interest_cloud (const Array &heightmap, PoiType type, const PoiGenerationOptions &options)
 Generates a Cloud of points of interest from a heightmap.
std::vector< PointOfInterest > hmap::generate_points_of_interest (const Array &heightmap, PoiType type, const PoiGenerationOptions &options)
 Generates a list of PointOfInterest objects from a heightmap.
std::vector< glm::vec2 > hmap::generate_points_of_interest_positions (const Array &heightmap, PoiType type, const PoiGenerationOptions &options)
 Generates 2D positions of points of interest from a heightmap.
std::vector< PointOfInterest > hmap::generate_points_from_score_field (const Array &score_field, const Array &heightmap, const PoiGenerationOptions &options, PoiType type=PoiType::CUSTOM)
 Generates a list of PointOfInterest objects from a precomputed score field.