Import
storeyTilingError
Storeys must tile their segment exactly; return the mismatch (0 when they do).resolveAreaKind
Explicit kind →parking use → parking; a storey whose top is at or below the site grade (world Y) → basement; otherwise gross.
AREA_KINDS
What a storey’s plate counts as.massQuantities
Quantities of a stacked-prism mass, whereoptions.grade is the world Y of the site grade (default 0) and a storey whose top is at or below it is a basement.
storeyFloorAreas
The gross floor area of each storey, kernel-free, in the order ofstoreys.
buildingFootprint
The footprint of the buildingbuildingId of model: the area inside the outer face of the walls of one storey, with the outline of that face.
massBuildingCommand
Theadd-building command for a new building with one mass, from an outline drawn in site XZ metres.
massPartAddCommand
Thereplace-mass command that stacks a new part (segment) on TOP of the mass of a building, from an outline drawn in site XZ metres — a podium, then a shaft, then a band that projects past the shaft.
invalid-target when the building has no mass, invalid-geometry for a
bad outline and invalid-command for bad options.
massPartRemoveCommand
Thereplace-mass command that removes one part (segment) of the mass of a building, as the Delete key of an editor does.
invalid-target when the building has no mass part segmentId, or when
the part has parts above and below it.
massSegmentFootprintCommand
Thereplace-mass command that gives one part (segment) of a saved mass a new footprint in place: move, add or remove corners without making the mass again.
invalid-target when the building has no mass part segmentId, and
invalid-geometry for a bad ring or hole.
toBuildingUse
Coerce a BuildingModel use string to aBuildingUse (custom: prefix for anything unknown).
irMassToMassLike
TheMassLike view of an BmBuilding with a mass: segments with their storeys resolved from building.storeys by id (in storeyIds order).
massToShell
Build the shell ofmass as an BmBuilding.
BUILDING_USES
MASS_COLORS_BY_USE
The colour of a mass part by its use, when neither the part nor its mass has acolor.
massSegmentColorCommand
Thereplace-mass command that gives one part of a saved mass the colour color (#rrggbb), or takes its own colour away when color is undefined; undefined when the part already has that colour.
Types
MassBuildingOptions
WhatmassBuildingCommand needs besides the outline.
MassPartOptions
WhatmassPartAddCommand needs besides the outline.
StoreyPlatesLike
StoreyFloorArea
The floor area of one storey, as storeyFloorAreas measures it.slabs: the sum of the slabs named in slabIds. walls: the storey has no slab that counts, and
the area is inside the outer ring of its wall centre lines. none: neither gives an area.The slabs summed into
grossFloorArea, in the order of the storey’s slabs: each by its id, or
by its place (slabs[2]) when it has none. Empty unless measuredFrom is slabs. A slab of the
storey that is not here has the role floor or ceiling, has the phase demolished, or lies
outside the walls.MassStorey
Overrides the owning segment’s use for this storey (a retail ground floor under offices).
AreaKind
What a storey’s plate counts as.MassLike
The structural shapemassQuantities needs — a Building’s config, an BmMass, or a plain object.
BuildingFootprintOptions
What buildingFootprint measures.Ids of roofs or slabs of the building, on any storey, whose outline counts as covered ground: a
carport roof, a porch roof, an upper floor over open ground. Their outer rings and the wall faces
count together, each place once. Absent: the wall faces alone.
Which building to measure, as the phase of each wall says:
complete, the building after the
works (every wall but a demolished one), or existing, the building before them (its existing
and demolished walls). Absent: complete.BuildingFootprint type
ShellOptions
The ids of the mass’s storeys to build. Absent: every storey. Skipped storeys keep their height,
so each listed storey stands at its elevation in the mass. A segment gets its roof only when its
top storey is listed. Throws if the list is empty or names a storey the mass does not have.
MeasuredBuildingFootprint
A footprint buildingFootprint could measure.One entry per edge of
outline: { through } for an arc, null for a straight edge.