spatial-monorepo / wayfinding/src / findGridRouteWithLadder
Function: findGridRouteWithLadder()
findGridRouteWithLadder(
units,openings,fixtures,origin,destination,opts?):LadderGridRouteResult
Defined in: packages/wayfinding/src/grid-relaxation.ts:485
units, openings, and fixtures must already be filtered to one level. Builds an uncached, throwaway BaseOccupancyGrid (no IMDFArchive object is available here to key a cache off) then runs the relaxation ladder against it — use findGridRouteWithLadderOnLevel to route on a cached base grid from a full IMDFArchive instead.
Parameters
units
IMDFFeature`<UnitProps>`[]
openings
IMDFFeature`<OpeningProps>`[]
fixtures
IMDFFeature`<ObstacleFootprintProps>`[]
origin
destination
opts?
GridLadderOptions = {}
