Repository navigation
feat(ifc): a single-layer floor carries its Depth and GrossVolume, and the census counts Revit's unscaled Perimeter apart (#1016) - #1053
Merged
Conversation
DrunkOnJava
enabled auto-merge (squash)
October 27, 2026 04:14
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 76e4123491
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
DrunkOnJava
force-pushed
the
re/slab-quantities
branch
from
October 27, 2026 04:39
76e4123 to
300bc23
Compare
… length unit is the foot, where Revit's feet are right (#1016)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A floor drawn as one extrusion whose type has one layer, as deep as the extrusion, carries
Qto_SlabBaseQuantities.Depth(the extrusion's length) andGrossVolume(its profile's area times that length), as Revit's export writes them. ItsPerimeteris not written: Revit's export writes it in feet as though they were the file's unit, and the quantity census counts it apart as a Revit defect on each slab where that is so (the maintainer's scope, 2026-10-26).Motivation
#1016 and W7. revit-ifc's
DepthCalculator,GrossVolumeCalculatorandPerimeterCalculator(CLEANROOM.md source 5) were read for what the export writes; the quantity candidate lister foundDepthequal to the extrusion's length andGrossVolumeto its volume on the office's single-layer floors.Changes
src/ifc/export_content.rs: a floor with itsGrossArea(RE-249) getsDepthandGrossVolumeonly where its type has exactly one layer and that layer is as deep as the extrusion. A layered floor gets neither: Revit's export gives one layer's depth there.tools/re/qtos_vs_ifc.py:SLAB_PERIMETERinREVIT_DEFECTS, counted apart per slab only where Revit's value, read as feet, equals the perimeter of the profile Revit's own body for that slab extrudes (relative 1e-4); every other slab'sPerimeterstays scored, as missing.docs/supported-profile.md,README.md,docs/release-1.0-criteria.md(W7),changelog.d/added/slab-depth-volume.md.research/witness/*/observations/rvt-rs.json: Core Interior's 78 single-layer floors gain the two quantities (78 moreIfcQuantityLength, 78IfcQuantityVolume), refreshed from this PR's Measure run; both verdicts replay PASS, unchanged.Testing
Measure 40445558012 (this change against
main, unfiltered,-f nordic=true -f r2025=true, every scorer),qtos_vs_ifc:DepthequalGrossVolumeequalPerimetercounted apartRebased onto #1052, which counts 461 and 388 walls'
Lengthapart: together, 20,582 of 39,721 as built, 19,138 missing (README and W7 state these), confirmed by the rebased branch's census (Measure 40450968329). The rebase also corrects the census's comment on where the wall curve lengths come from (the export diagnostics since #1052).Core Interior's export was made with base quantities off (RE-242): its 156 new quantities are counted apart (1,118 → 1,274). RE1 Architecture's and every R2025 export are unchanged.
Every other scorer's output is as on
main; only the office and Core Interior exports move. No project-count fixture pins the quantity entity counts.Verified end to end on real Revit files (BIM4LCA office, VTT, CC BY-SA 4.0; Core Interior and RE1, MIT; puzzbobb's R2025 models, Apache-2.0)
The witness verdicts replay with the refreshed observations
Audit-honesty checklist
changelog.d/DepthandGrossVolume, 29Perimeters)Legal and contribution hygiene
Breaking changes
None.