Skip to content

spatial-monorepo


spatial-monorepo / wayfinding/src / BaseOccupancyGrid

Interface: BaseOccupancyGrid

Defined in: packages/wayfinding/src/grid-types.ts:103

An OccupancyGrid with walls, opening gaps, and fixture/kiosk obstacles already rasterized (buildBaseOccupancyGrid) — everything that is not relaxation-rung- specific — plus the cell-space geometry restampOccupancyGrid needs to apply the rung-specific dynamic layers (wall-vertex clearance discs, blocked-unit fills) without re-deriving ring geometry from lng/lat or re-rasterizing walls (issue #483: "cache the per-level base occupancy grid ... so the relaxation ladder restamps only the dynamic layers per request instead of re-rasterizing walls on every ladder rung and every route call"). See getBaseOccupancyGridForLevel in grid-relaxation.ts for the per-archive/per-level cache built on top of this.

Extends

Properties

cellsPerMetre

cellsPerMetre: number

Defined in: packages/wayfinding/src/grid-types.ts:78

Inherited from

OccupancyGrid.cellsPerMetre


data

data: Uint8Array

Defined in: packages/wayfinding/src/grid-types.ts:83

Row-major occupancy: data[y * width + x]. 1 = blocked (wall stroke, or space outside every unit polygon), 0 = walkable.

Inherited from

OccupancyGrid.data


derated

derated: boolean

Defined in: packages/wayfinding/src/grid-types.ts:89

True when memoryBudgetCells forced a lower resolution than requested.

Inherited from

OccupancyGrid.derated


doorGapEndpointsCells

doorGapEndpointsCells: MetrePoint[]

Defined in: packages/wayfinding/src/grid-types.ts:109

Every Opening's door-gap endpoints (jamb classification for wall-vertex clearance discs), in cell-index space.


height

height: number

Defined in: packages/wayfinding/src/grid-types.ts:77

Inherited from

OccupancyGrid.height


originMetres

originMetres: MetrePoint

Defined in: packages/wayfinding/src/grid-types.ts:87

Metre-space coordinate of grid cell (0,0)'s lower corner (the padded floor bbox min).

Inherited from

OccupancyGrid.originMetres


projector

projector: GridProjector

Defined in: packages/wayfinding/src/grid-types.ts:85

Equirectangular projector (origin = floor bbox centroid) used to build this grid.

Inherited from

OccupancyGrid.projector


unitIds

unitIds: string[]

Defined in: packages/wayfinding/src/grid-types.ts:105

Unit ids aligned 1:1 with unitRingsCells (units with no usable polygon geometry are omitted, same as buildOccupancyGrid's own filtering).


unitRingsCells

unitRingsCells: MetrePoint[][]

Defined in: packages/wayfinding/src/grid-types.ts:107

Each unit's boundary ring, already projected and converted to this grid's cell-index space.


width

width: number

Defined in: packages/wayfinding/src/grid-types.ts:76

Inherited from

OccupancyGrid.width

Released under commercial licensing.