spatial-monorepo / core/src / computeUnitWallBand
Function: computeUnitWallBand()
computeUnitWallBand(
unitPolygon,thickness?):MultiPolygon
Defined in: packages/core/src/layers/wall-bands.ts:397
Computes the wall band for a single unit polygon: unit − inset(unit, thickness). Never throws — a fully-degenerate inset (see insetPolygon) makes the entire unit polygon its own band rather than crashing (acceptance criterion: "concave/self-intersecting unit polygons don't crash the generator").
Parameters
unitPolygon
Polygon | MultiPolygon
thickness?
number = DEFAULT_WALL_BAND_THICKNESS
Returns
MultiPolygon
