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

Header file for terrain-aware points of interest (POI) extraction and procedural point generation. More...

Go to the source code of this file.

Classes

struct  hmap::PointOfInterest
 Represents a terrain-aware point of interest with physical descriptors. More...
struct  hmap::PoiGenerationOptions
 Configuration parameters for procedural point-of-interest generation. More...

Namespaces

namespace  hmap

Enumerations

enum class  hmap::PoiType : int {
  hmap::CUSTOM = 0 , hmap::APEX , hmap::SINK , hmap::SADDLE ,
  hmap::RIDGE , hmap::VALLEY , hmap::CLIFF , hmap::PLATEAU ,
  hmap::FLAT_LOWLAND , hmap::VIEWPOINT , hmap::SETTLEMENT_CANDIDATE
}
 Classification types for terrain-aware points of interest. More...

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.

Detailed Description

Header file for terrain-aware points of interest (POI) extraction and procedural point generation.

Author
Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)