tess 1.0.0
Performance-first tile and path simulation substrate
Loading...
Searching...
No Matches
tess::AreaIndex Class Reference

#include <tess/spatial/area.h>

Public Member Functions

void reserve (std::size_t region_count, std::size_t portal_count)
void clear () noexcept
auto areas () const noexcept -> std::span< const AreaSummary >
auto connections () const noexcept -> std::span< const AreaConnection >
auto area_of (RegionRef region) const noexcept -> AreaId
template<typename Shape, typename Residency>
auto area_of (const RegionGraphT< Residency > &graph, Coord3 coord) const noexcept -> AreaId
template<typename Residency>
auto is_valid (const RegionGraphT< Residency > &graph) const noexcept -> bool

Friends

template<typename Residency, typename Grouper>
auto build_area_index (const RegionGraphT< Residency > &graph, Grouper &&grouper, AreaIndexScratch &scratch, AreaIndex &index) -> AreaBuildResult
 Groups graph regions by a caller-supplied nonzero 64-bit semantic key.

Detailed Description

Caller-defined, graph-derived grouping of topology regions.

Graph-aware validation borrows the exact RegionGraphT object used to build the index. That object must outlive those calls; clear or rebuild the index before destroying the graph or reusing its storage for another graph.


The documentation for this class was generated from the following file: