Calculated values

Values BIM.works derives from geometry and structure — calculated.quantity (floor area, volume, perimeter …), calculated.property (level, isExternal …), calculated.geometry flags and counts, consistency checks, aabb and obb.

A calculated value is not stored in the IFC file: BIM.works computes it from the object's geometry and its place in the model when the model is processed. They fill in for missing quantities, check the ones the file has, and describe the geometry itself.

calculated.quantity#

How calculated quantities are measured illustrates and defines all 44 quantity keys, their object-specific conventions and their panel labels. The panel collapses proven aliases and places older mesh measurements under Advanced; every query name remains available. floorArea stays prominent for spaces.

Path Value
calculated.quantity.footprintArea Union of vertical projections for supported types; enclosing-rectangle area for generic objects.
calculated.quantity.grossSurface, netSurface Gross and net primary-face areas; generic gross surface instead measures the enclosing box.
calculated.quantity.grossVolume, netVolume Category-specific gross box/uncut-solid volume and effective net solid volume.
calculated.quantity.floorArea Summed downward-facing projected mesh area; Floor area for spaces. Overlapping projections can count more than once.
calculated.quantity.volume Raw absolute signed mesh volume, without the effective-solid guarantees of netVolume.
calculated.quantity.perimeter Boundaries of downward-facing mesh patches, including holes and stacked-patch multiplicity.
calculated.quantity.boundaryArea Area of one space-boundary entity's geometry.
calculated.quantity.area Total area of all stored mesh triangles, including ends, edges and reveals.
calculated.quantity.frontArea, backArea Actual face areas classified towards an opposing mesh-local horizontal pair.
calculated.quantity.topArea Summed upward-facing projected mesh area, rather than sloped face area.

Each takes an optional .value field. They are numbers with units and behave like quantities in comparisons and aggregates. A supported verification figure is selected with .figure in GET; Advanced does not add a segment to the query path. A full quantity pack also includes measurement, containing its stored quality, availability, provenance and accuracy certificate. .value keeps its existing numeric behavior.

BQL#
GET qid, attribute.Name, calculated.quantity.floorArea UNIT m2, calculated.quantity.volume UNIT m3 WHERE type = IFCSPACE
BQL#
GET qid, quantity.Qto_SpaceBaseQuantities.NetFloorArea, calculated.quantity.floorArea
WHERE type = IFCSPACE AND quantity.Qto_SpaceBaseQuantities.NetFloorArea != calculated.quantity.floorArea WITHIN 5 %

Measurement quality and accuracy#

BQL#
GET qid, calculated.quantity.netVolume.measurement, calculated.quantity.netVolume.value
WHERE type = IFCWALL

calculated.quantity.<key>.measurement selects the measurement record as JSON, even when the quantity is unavailable and has no numeric value. A quantity that was never measured and has no stored value or record returns null. This selection is for GET; it has no comparison, arithmetic, aggregate, grouping, ordering or UNIT semantics.

Field Meaning
quality analytic, bounded, unboundedEstimate or unavailable, as defined below.
status estimated when approximation names a reason, the value the panel marks with ≈; available for any other value; unavailable when there is no measurement value.
approximation Why the value approximates the represented geometry: curvedGeometry, inferredReference, sampled, approximatedDefinition, unclassifiedGeometry, errorBoundExceeded or unrecorded. null when it is calculated without approximation, or its certificate meets the accuracy policy.
source, method Technical provenance and the measurement algorithm, where known.
reason Machine-readable reason when unavailable, where applicable.
accuracy The certificate's policyVersion, reference, dimension, maximumErrorSI, cutoffSI, relativeCutoff, proof and qualified.

analytic identifies a directly evaluated defining dimension or supported closed-form profile area or extrusion volume with an independent interval certificate, including numerical error. bounded identifies another calculation with a proven maximum error. unboundedEstimate means there is no reliable maximum-error certificate; maximumErrorSI: null does not mean zero. unavailable retains the reason for a missing measurement. These categories do not replace the acceptance decision: an analytic or bounded value can still fail its cutoff. Use accuracy.qualified to check whether the accuracy policy accepts it. A value without a certificate is not approximated for that reason: unboundedEstimate with approximation: null is calculated without approximation, but its error is not proven. See Accuracy and the approximation marker for the reasons, the absolute and relative limits and represented-geometry scope. Records written before the approximation field have none; the panel then keeps ≈ unless accuracy.qualified is true.

Use calculated.quantity.<key>.quality to select the quality string, filter with WHERE, group results or color objects in BVL. This indexed field includes unavailable measurements even when there is no numeric pack. It does not make calculated.quantity.<key> = null match differently. Existing models need their FeatureDb rebuilt to populate the quality index.

BQL#
GET calculated.quantity.netVolume.quality, COUNT(qid)
GROUP BY calculated.quantity.netVolume.quality

The same record is included by default beside the numeric pack in GET calculated.quantity.<key> and for every returned quantity in GET calculated.*. Broad requests also include calculated.details.measurements, including unavailable measurements that have no numeric pack. Explicit GET calculated.details returns all stored measurement records and opening/flight details. Bounds and cutoffs remain in SI even if the numeric value is requested or displayed in another unit. Older numeric packs without certificates are reported as unboundedEstimate.

BQL#
GET qid, calculated.quantity.netVolume, calculated.details
WHERE type = IFCWALL

calculated.property#

Path Value
calculated.property.level The level index of a building storey (0 for the ground floor, negative below). On a storey itself; through buildingStorey.calculated.property.level for the objects on it.
calculated.property.isExternal Whether the object is on the outside of the building, derived from the geometry.
calculated.property.internalTriangles, externalTriangles How many triangles face inside and outside.
calculated.property.visibleFragments Visible fragments of the geometry.
BQL#
GET qid, attribute.Name WHERE type = IFCWALL AND buildingStorey.calculated.property.level = 1

calculated.geometry#

Flags: hasGeometry, hasOwnGeometry, childrenHaveGeometry, hasGeneratedGeometry, reused, isReusedGpu, segmented, simplified, hasTransparency, twoSidedTriangles; the identifier geometryId; and the counts calculated.geometry.counts.vertices, .triangles, .triangleIndices, .wireframeIndices, .normals, .colors.

BQL#
GET type, COUNT(qid), SUM(calculated.geometry.counts.triangles) AS Triangles WHERE calculated.geometry.hasGeometry GROUP BY type
BQL#
GET qid, attribute.Name, calculated.geometry.counts.triangles WHERE calculated.geometry.counts.triangles > 100000 ORDER BY calculated.geometry.counts.triangles DESC LIMIT 20

calculated.consistency#

Mesh quality of the object's geometry: watertight (closed in the geometric sense: every edge is shared by two triangles or sealed by the neighbouring face), bwOpenEdges (true when some edges are used by one triangle only; together with watertight = true this means the faces meet in T-junction seams — closed, but the tessellation could have been cleaner), manifold, orientationConsistent, degenerateTriangles.

When BIM.works repaired a defect in the file's geometry (geometry repairs, applied mode), these describe the geometry as stored — the repaired one — and the object also has repaired (true), repairArchetype (the number of the geometry-error archetype the repair served: 10 missing planar faces, 11 open-ended surface model, 13 duplicated faces, 14 glue faces, 15 duplicated parts), originalWatertight and originalVolume (the geometry as converted, before the repair). Objects that were not repaired have none of the four.

BQL#
GET qid, type, calculated.consistency.bwOpenEdges WHERE calculated.consistency.watertight = false

aabb#

aabb is the axis-aligned bounding box in model coordinates, available at the top level and as calculated.aabb: minx, miny, minz, maxx, maxy, maxz and the sizes width (x), depth (y), height (z). x, y, z are the minimum corner, the same values as minx, miny, minz — not the centre. There is no centre field; compute it as (minx + maxx) / 2 from the returned values, or use calculated.obb.centerX … centerZ for the oriented box. The box leaves out the object's lines, except for an object that has nothing else, such as an IfcAnnotation: its box is that of its lines, with a height of 0 for lines drawn in a plan.

BQL#
GET qid, attribute.Name, aabb.height UNIT m WHERE type = IFCDOOR AND aabb.height > 2.4 m

obb#

calculated.obb is the oriented bounding box: centerX, centerY, centerZ, halfExtentX, halfExtentY, halfExtentZ and the axes axis1X … axis3Z; calculated.obb without a field returns the whole box. Like aabb it leaves out lines unless the object has only lines; for a straight line the first axis runs along it, with halfExtentX half its length in plan.

BQL#
GET qid, calculated.obb.halfExtentX, calculated.obb.halfExtentY, calculated.obb.halfExtentZ WHERE type = IFCBEAM

All and meta#

calculated.* returns every calculated value; calculated.meta lists which ones the object has (Meta features).

Used in#