Chokepoints Module
Distance-transform-based chokepoint detection. Returns stable-ID, width-annotated descriptors for corridors that approach a specified base centre.
Functions and values
| Function or value |
Description
|
Full Usage:
chokepointIdOf grid ridgeCellX ridgeCellZ
Parameters:
MapGrid
ridgeCellX : int
ridgeCellZ : int
Returns: ChokepointId
|
Deterministically compute the stable ID for a ridge cell. Exposed so callers can
reference a chokepoint by its
|
Full Usage:
computeDistanceTransform grid moveType ownStructures
Parameters:
MapGrid
moveType : MoveType
ownStructures : OwnStructureFootprint seq
Returns: float32[,]
|
Return the distance-transform raw values for diagnostic or visualisation use.
Dimensions match
|
|
Default query for a given move type:
|
Full Usage:
findChokepoints grid baseCentre query
Parameters:
MapGrid
baseCentre : float32 * float32 * float32
query : ChokepointQuery
Returns: Chokepoint list
|
Find all chokepoints within the query's search radius around baseCentre, sorted by distance from base (closest first). Returns an empty list when no passage satisfies the width threshold and primary-route predicate.
|
FSBarV1_Archived