Skip to content

feat(ifc): a single-layer floor carries its Depth and GrossVolume, and the census counts Revit's unscaled Perimeter apart (#1016) - #1053

Merged
DrunkOnJava merged 8 commits into
mainfrom
re/slab-quantities
Oct 27, 2026
Merged

DrunkOnJava merged 8 commits into
mainfrom
re/slab-quantities

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

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) and GrossVolume (its profile's area times that length), as Revit's export writes them. Its Perimeter is 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, GrossVolumeCalculator and PerimeterCalculator (CLEANROOM.md source 5) were read for what the export writes; the quantity candidate lister found Depth equal to the extrusion's length and GrossVolume to its volume on the office's single-layer floors.

Changes

  • src/ifc/export_content.rs: a floor with its GrossArea (RE-249) gets Depth and GrossVolume only 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_PERIMETER in REVIT_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's Perimeter stays scored, as missing.
  • RE-235 §5 (the defect row), 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 more IfcQuantityLength, 78 IfcQuantityVolume), 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:

model Depth equal GrossVolume equal different Perimeter counted apart quantities equal
office as built 0 → 13 of 42 0 → 13 of 42 0 13 20,556 → 20,582; scored 40,195 → 40,182
office at permit 0 → 13 of 42 0 → 13 of 42 0 13 20,543 → 20,569; scored 40,414 → 40,401

Rebased onto #1052, which counts 461 and 388 walls' Length apart: 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

  • README / docs reflect the current state after this PR
  • A user-visible change has its entry as a fragment under changelog.d/
  • What stays missing is stated (29 of 42 floors' Depth and GrossVolume, 29 Perimeters)
  • Commit messages describe what changed and why
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files

Legal and contribution hygiene

  • Apache-2.0
  • No Autodesk proprietary content. revit-ifc's calculators were read for what its export does and not copied (CLEANROOM.md source 5).
  • No fixtures

Breaking changes

None.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 27, 2026 04:14

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread tools/re/qtos_vs_ifc.py Resolved
@DrunkOnJava
DrunkOnJava merged commit 8943fcb into main Oct 27, 2026
31 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/slab-quantities branch October 27, 2026 05:17
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant