Skip to content

spatial-monorepo


spatial-monorepo / core/src / generateWallBands

Function: generateWallBands()

generateWallBands(levelPolygon, unitPolygons, openings?, options?): FeatureCollection`<Polygon, WallBandProperties>`

Defined in: packages/core/src/layers/wall-bands.ts:449

Generates the per-level wall-band FeatureCollection (docs/plans/wall-rendering.md, Track A). Geometry only: does not touch MapLibre layers or RenderOptions.

Parameters

levelPolygon

Polygon | MultiPolygon

The level's own footprint polygon.

unitPolygons

(Polygon | MultiPolygon)[]

Unit (room) polygons on that level.

openings?

LineString[] = []

Door/opening LineStrings on that level (optional).

options?

WallBandOptions = {}

Thickness, height and door-gap tuning (all optional).

Returns

FeatureCollection`<Polygon, WallBandProperties>`

Released under commercial licensing.