|
HighMap library (C++)
|
Go to the source code of this file.
Classes | |
| class | hmap::ScatterField |
| Container and processor for spatial ScatterItem collections. More... | |
Namespaces | |
| namespace | hmap |
Enumerations | |
| enum | hmap::ScatterShape : int { hmap::SCATTER_SHAPE_DISK , hmap::SCATTER_SHAPE_POLYGON , hmap::SCATTER_SHAPE_CONE , hmap::SCATTER_SHAPE_PYRAMID , hmap::SCATTER_SHAPE_SMOOTH_DOME } |
| Defines the geometric shape used when converting a ScatterField to a heightmap. More... | |
Functions | |
| ScatterField | hmap::merge_scatter_fields (const std::vector< ScatterField > &fields, bool merge_by_class=true) |
| Merges multiple ScatterField instances into a single instance. | |
| ScatterField | hmap::merge_scatter_fields (const std::vector< ScatterField > &fields, const std::vector< BBox2D > &bboxs, bool merge_by_class=true) |
| Merges multiple ScatterField instances with associated bounding boxes into a single instance, resolving overlaps by keeping items from earlier fields in the input order. | |
| Array | hmap::scatter_field_to_heightmap (const ScatterField &field, glm::ivec2 shape, ScatterShape shape_type=SCATTER_SHAPE_DISK, float height_radius_ratio=1.0f, std::optional< uint32_t > class_id=std::nullopt, Array *p_rock_map=nullptr, uint32_t seed=0, const UvRect &uv_rect=UvRect::unit()) |
| Converts a ScatterField into a heightmap by representing each scattered object as a local elevation increase on GPU. | |