Spatial utilities¶
Module: bimora.spatial (analysis, units) · CLI: bimora spaces, bimora report.
All results come from what the model declares. Areas are declared quantities (IfcElementQuantity), never
measured from geometry. Totals are labelled "calculated": "sum of declared quantities", and spaces without a
declared area are listed instead of estimated.
Function (bimora.spatial.analysis) |
Result |
|---|---|
hierarchy(model) |
nested Project → Site → Building → Storey → Space tree, element count per storey |
floors(model) |
storeys ordered by declared elevation (with the project length unit), space and element counts |
room_inventory(model) |
per space: number, name, storey, category, NetFloorArea / GrossFloorArea (value, unit, m², source) |
space_category(space) / space_classes(model) |
category = classification code, else ObjectType, else predefined type, else unclassified |
area_summary(model, unit="m2") |
net / gross area per storey and total in m² or ft², list of spaces without a declared area |
element_statistics(model) |
counts by class, by storey and by storey × class, number of spaces and openings |
group_elements(model, by) |
GlobalIds grouped by ifc_class, storey, type or material |
spatial_relationships(model) |
element → container, with direct / via-host relationship |
Unit conversion¶
bimora.convert(value, from_unit, to_unit) converts lengths (m, mm, cm, km, ft, in, yd, mi), areas (m2, mm2, cm2,
ha, km2, ft2, in2, yd2, acre) and volumes (m3, mm3, cm3, l, ft3, in3, yd3). Factors are exact (1 ft = 0.3048 m).
Common names are accepted ("metre", "sq ft", "m²").
bimora convert 120 m2 ft2
When a file declares a conversion factor itself (for example IfcOpenShell writes 0.0283168467117 m³ per cubic foot), the toolkit uses the file's declared factor for that file's quantities.