spatial-monorepo / wayfinding/src / buildFloorConnectivityGraph
Function: buildFloorConnectivityGraph()
buildFloorConnectivityGraph(
archive,opts?):FloorConnectivityGraph
Defined in: packages/wayfinding/src/grid-multifloor.ts:56
Builds the floor-connectivity graph from an IMDFArchive: every vertical-transport unit (stairs/elevator/escalator/ramp) becomes a GridPortal; two portals on adjacent-ordinal floors of the same category within portalProximityM of each other (by Anchor display_point when available, else unit display_point — PRD F12, the same rule the legacy graph engine uses) become a directional PortalPairConnection in both directions. crossBuilding is true only when both levels declare at least one building id and share none — levels with no declared building id are assumed to share a building with anything (so venues that never populate building_ids see no phantom building-hop penalty).
