Skip to main content

Import

evaluateZoning

Evaluate rules for masses on site.

evaluateBuildingZoning

Check rules for masses and the walled input.buildings on site.

buildableFootprint

The buildable plate(s) at atHeight above grade — the parcel inset per edge by the rules, holes grown by theirs, the no-build zones left out.

buildableEnvelope

Stack buildable plates from grade to the height cap (or opts.maxHeight) in bandHeight bands; stops at the first band with no buildable region.

resolvedLotLines

Resolved lot-line classes (every edge side when the site has none).

edgeSetbacks

Per-edge insets at atHeight above grade: one per outer edge, one list per hole.

requiredInset

Largest inset among the plane rules addressing edgeClass (and outer edge edgeIndex) at atHeight.

heightCapOf

Height cap above grade, when a height-cap rule exists (the smallest wins).

planeOffsetAt

Inset one plane rule demands at atHeight above grade.

Types

SiteLike

The structural shape the envelope needs — a Site’s config or a plain object.

ZoningOptions

What else evaluateZoning is told about the site.
readonly { id: string; name?: string; mass?: unknown; }[]
The buildings of the site, such as BuildingModel.buildings. A building with no mass is not counted, and the report’s notes say so; this check reads masses only.

ZoningReport

boolean
required
ZoningViolation[]
required
ZoningViolationType | null
required
ZoningMetrics
required
string[]
What the check left out, in words: one note for each building of options.buildings that has no mass, so its walls are not counted. Absent when there is nothing to say.

BuildingZoningInput

The walled buildings of evaluateBuildingZoning and how to measure them.
readonly BmBuilding[]
required
Buildings drawn with walls. A building with a mass is left out: pass its mass instead.
BuildingModel['wallTypes']
Readonly<Record<string, readonly string[]>>
Per building id: roofs or slabs that count in its footprint (buildingFootprint coveredBy).
Readonly<Record<string, number>>
Per building id: the world Y of its highest point, measured by the caller (for example from the built model). It replaces the height read from walls and roofs, and is the only way to give the height of a building with a pitched roof.

BuildingZoningReport

'compliant' | 'violations' | 'not-evaluated'
required
compliant only when every rule was evaluated and none is broken.
boolean
required
ZoningViolation[]
required
ZoningRuleNotEvaluated[]
required
The rules that could not be judged because a figure they need is not measured.
ZoningViolationType | null
required
{ siteArea: number; footprintArea: ZoningFigure; countedFloorArea: ZoningFigure; floorAreaRatio: ZoningFigure; siteCoverage: ZoningFigure; volumeRatio: ZoningFigure; maxHeight: ZoningFigure; }
required
BuildingZoningFigures[]
required

EnvelopePlaneRule

'envelope-plane'
required
string
required
LotLineClass | 'all'
Which lot lines the plane rises from. all = every outer edge and every hole edge. Give edgeClass or edgeIndex, not both.
number
The one outer edge the plane rises from: edge i runs from outerRing[i] to [i + 1].
number
required
Horizontal setback from the lot line at grade, metres.
number
Height above grade at which the plane starts leaning inward. Default 0.
number
Plane slope from horizontal, degrees, in (0, 90]. Default 90 (vertical).

ZoningViolation

ZoningViolationType

ZoningMetrics

number
required
number
required
Σ net footprints of the parts that stand at grade. A mass that starts below grade counts the part that crosses it; one wholly below grade or wholly raised counts none.
number
required
number
required
GFA of the storeys whose area kind counts toward FAR.
number
required
number
required
number
required
number
required
Tallest point above grade.
Array<{ id: string; } & MassQuantities>
required

ZoningRuleNotEvaluated

A rule that could not be judged, and why.

ZoningFigure

A figure of a zoning check: its value, or why it was not measured.

BuildingZoningFigures

The figures of one walled building.
string
required
ZoningFigure
required
To the outer wall face, with its coveredBy parts.
ZoningFigure
required
Highest point above grade.
ZoningFigure
required
The storey areas whose kind counts toward FAR.
Last modified on November 28, 2026