Skip to content

research(walls): what Revit's export does with the part of a wall's plan a floor leaves uncovered, over 225 pieces of five buildings (#1067) (RE-375) - #1591

Merged
DrunkOnJava merged 3 commits into
mainfrom
re/1067-outside-floor
Nov 9, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
re/1067-outside-floor

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

RE-375 measures what Revit's own export does with the part of a wall's plan that the floor, roof or footing cutting its top leaves uncovered, over every wall of the models that have a Revit export. Revit keeps the wall's own height there on 191 of 225 pieces and cuts it on 5. The stub of the BIM4LCA office's wall 3004978 as built, which RE-320 leaves at its full height, is one of the 5. Nothing the scorer reads separates the cut pieces from the kept ones on more than one wall, so a rule for the stub rests on one wall. No export changes.

Motivation

#1067's remainder: wall 3004978 is the one of the office's 607 walls whose top is not Revit's (9.2421 ft over, 14.94 ft³ of body over). RE-320 section 4 left it, since nothing separated the stub from the pieces Revit keeps and the only rule rested on that wall. This asks the question of Revit's bodies over many walls, to see whether a rule with more behind it exists.

Changes

  • tools/re/wall_outside_floor_vs_ifc.py (new): for each wall both files hold, the pieces of Revit's plan outside the floors that cut it, each classed kept, cut or mixed by how much of it Revit's body has at the wall's own height, with where it lies along and across the wall, how much of it is inside other walls, where Revit's Axis ends against it and how Revit draws the wall; and the tallies. Reads Revit's bodies alone, plus rvt-rs's highest point for the wall's own height.
  • reports/element-framing/RE-375-wall-top-outside-floor.md (new): the results, the stub, what does not separate, what is not measured, how to reproduce.
  • reports/element-framing/RE-320-stepped-wall-tops.md: one sentence in section 7 points to RE-375.
  • changelog.d/research/1067-wall-outside-floor-census.md.

Testing

Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.

  • Verified end to end on real Revit files (report section 3):
    • Measure 42588689964: every model with a Revit export (the two offices, Core Interior, the four RE1 models, the 24 Revit 2025 models, the terrain offices).
    • Measure 42589969107 (the two offices) and 42591992609 (four Revit 2025 models), with Revit's Axis read.
    • Snowdon Towers Architectural run locally (the CI-built rvt-ifc of run 42589969107 in a Linux container, against Revit's IFC4 export, which is local only): counts only in the report.
    • 225 pieces: 191 kept, 29 mixed (finish layers), 5 cut (the stub, 2 pieces on a wall under a sloped roof, 1 on a Snowdon Towers wall).
  • If this touches the IFC exporter: it does not. The change is a scorer, a report and a changelog fragment; no export moves.
  • Performance: N/A.

Audit-honesty checklist

  • README / docs reflect the current state after this PR: nothing user-visible changes; RE-320 section 7 points to RE-375.
  • A change worth a changelog entry has its fragment under changelog.d/research/.
  • If a limitation was resolved, the docs are updated: none is. The stub stays at its full height; the report says why a rule for it rests on one wall.
  • If a new limitation was introduced, it is documented: the census reads floors, roofs and footings only, and walls under a sloped roof are not compared (report section 6).
  • 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
  • Reverse-engineering finding: the scorer is the probe of this report and the report states the status (negative for a rule that rests on more than one wall).

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0 (see CONTRIBUTING.md)
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see CLEANROOM.md). Contributor declaration: every fact here comes from byte observations of the files named above and Revit's own IFC4 exports of them. I read Autodesk's open-source revit-ifc exporter (WallExporter.cs) for what the export writes and did not copy or translate its code; no finding here rests on it. No Autodesk or ODA SDK source, disassembly, leaked document or NDA material was used. Snowdon Towers' IFC4 export is used only as an oracle, locally, and is not committed; its results are counts.
  • No new test fixtures

Breaking changes

None.

Screenshots or output samples

The census of the office as built, the stub wall (run 42589969107):

piece tag:3004978 ... area 0.0225 width 0.0853 along -0.0000 0.0853 of 5.0066 ... in other walls 1.0000 kept 0.0000 | cut | axis beyond | form SweptSolid IfcExtrudedAreaSolid/IfcArbitraryClosedProfileDefx3
axis tag:3004978 0.0853 5.0066 inside the elements 1.0000
census cut axis beyond: 2
census kept axis straddle: 20
census kept axis within: 31

Related issues

Refs #1067. The stub of wall 3004978 is still left at its full height.

…of a wall's plan that a floor leaves uncovered (#1067) (RE-320)
…rt of a wall's plan a floor leaves uncovered, over 225 pieces of five buildings (#1067)
@DrunkOnJava
DrunkOnJava merged commit c45d081 into main Nov 9, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/1067-outside-floor branch November 9, 2026 09:36
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
…it's, 117 models read none, six exports move by earcut alone (#1067) (RE-375)

Section 8 holds the unfiltered Measure of the rule (run 42598250689, 118 models a side, the 18 held-out ones byte-identical), why six more exports differ (the head predates the earcut 0.4.12 bump), and its reproduce command. Section 7's commands name main, which carries the scorer since #1591, instead of the branch it landed from.
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
… another wall is cut whole, as Revit cuts it, and counted apart (#1067) (RE-375) (#1596)

## Summary

Wall 3004978 of the BIM4LCA office as built is the one of the office's
607 walls whose top is not Revit's: its roof covers all of its plan but
a 0.0853 ft stub of its end, inside the wall it abuts, and Revit cuts
the stub with the rest of the wall, while rvt-rs left the wall at its
full height (9.24 ft over Revit's top, 14.94 ft³ of body over). This
cuts such a wall whole at the covering floor's underside, as Revit does,
and marks it with `TopCoverStub` and a count in
`exported.wall_top_stubs_cut`. The rule rests on that one wall.

## Motivation

#1067's remainder. RE-320 section 4 found nothing that separates the
stub from the pieces Revit keeps outside a floor, except that it is all
of the wall that lies outside the floor, and `wall_tops::embedded`
already tests that, but leaves the wall untouched. RE-375 (#1591) read
Revit's own bodies over 225 pieces of five buildings: Revit keeps the
wall's own height on 191 and cuts it on 5, no feature the scorer reads
separates them on more than one wall, and the stub is the only piece
under 0.05 ft² and wholly inside other walls. So the rule fits the one
measured wall and disagrees with no other piece; it is a labelled,
counted-apart rule on one wall, which is what this ships.

## Changes

- `src/ifc/export_content/wall_tops.rs`: `steps` drops what the lowest
underside leaves of a wall's plan where `embedded` says it is a stub
(under 0.05 ft², wholly inside other walls) instead of refusing the
wall, so that `decide` cuts the wall whole (`Cut::Whole`, now with a
`stub` flag), and `cut_wall_tops` writes `TopCoverStub`
(`inside_another_wall`) on it. The wall's `BodyHeightSource` is the
whole cut's, `wall_top_cut_at_covering_floor`, which every consumer
already reads.
- `src/ifc/export_content.rs`: `WALL_TOP_STUB_PROPERTY` and
`WALL_TOP_STUB_INSIDE_WALL`.
- `src/ifc/mod.rs`, `docs/schemas/export-diagnostics.schema.json`,
`docs/export-diagnostics.md`: `exported.wall_top_stubs_cut`, counted
from the property like `wall_end_sources`.
- `tools/re/wall_rule_counts.py`: prints it (`wall rules: top stubs
cut`), so every Measure run shows the count, held-out models included.
- `reports/element-framing/RE-320-stepped-wall-tops.md`,
`docs/format-reconnaissance.md`: the stub is no longer left whole.
- `reports/element-framing/RE-375-wall-top-outside-floor.md`: section 8
records the rule's Measure, and section 7's commands name `main`, which
carries the scorer since #1591.
- `changelog.d/changed/1067-wall-top-stub.md`.

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [ ] `full / CI passed` on the final head
- [x] Verified end to end on real Revit files: unfiltered Measure
[42598250689](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42598250689)
(`abc505ad` against `main` at `4ad2ce90`, `-f nordic=true -f r2025=true
-f samples=true -f racadv=true -f bimcollab=true -f holdout=true`, every
scorer), 118 models a side. RE-375 section 8 has the detail.
- The office as built moves, and only because of this change: wall
3004978's top goes from 255.5446 to 246.3025 ft, Revit's, and
`wall_heights_vs_ifc` gives base and top Revit's on 607 of 607 walls
(606 before).
- `wall rules: top stubs cut` reads `inside_another_wall=1` on the
office as built and `none` on the other 117 models, the 18 held-out ones
included, whose exports are byte-identical to `main`'s.
- Six more exports differ from `main`'s, and not because of this rule:
the branch predates #1592, so it builds `earcut` 0.4.11 against `main`'s
0.4.12. They are the six that PR names (rac_advanced on 2023 to 2027,
Snowdon Towers Architectural 2024). Their `diagnostics.json` differ only
by the new, empty `wall_top_stubs_cut`, their stub count is `none`, and
no scorer output of theirs changes. The other 111 exports are
byte-identical.
- No other scorer output or W7 value moves: the scorer diff holds the
office's `wall_heights_vs_ifc.txt` and `wall_rules.txt` and the two
Areas gate results, which only the head side runs.
- `same-project gates` passed on `abc505ad`: 15 samples held to their
earlier saves, and the Areas on 4 saves and on the 2021 save.
- [x] Performance: N/A. The rule is a branch in a pass that already
runs.

## For the reader

The branch is not rebased on `main`. `abc505ad` is the commit the
same-project gates passed on and Measure measured; the commit after it
changes the RE-375 report only. `main` has taken #1592 (`earcut`) and
#1595 (dependency bumps) since, neither of which this touches.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR: the
diagnostics table and schema, RE-320 and the reconnaissance addendum.
- [x] A user-visible change has its entry as a fragment under
`changelog.d/changed/`
- [x] If a limitation was resolved, the docs are updated: the stub of
3004978 no longer keeps its full height.
- [x] If a new limitation was introduced, it is documented: the rule
rests on one wall (the property, the diagnostics row, the module docs
and RE-375 say so). A wall whose floor leaves a stub that is not under
0.05 ft² and wholly inside other walls is as before.
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files
- [x] Reverse-engineering finding: RE-375 (landed in #1591) holds the
scorer and the report; this applies its rule and adds section 8 with the
Measure.

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0 (see
`CONTRIBUTING.md`)
- [x] This PR contains no Autodesk proprietary source, decompiled
internals, or NDA'd SDK content (see `CLEANROOM.md`). Contributor
declaration: every fact here comes from byte observations of the BIM4LCA
office and Revit's own IFC4 exports of it. No Autodesk or ODA SDK
source, disassembly, leaked document or NDA material was used, and
nothing was copied or translated from revit-ifc.
- [x] No new test fixtures

## Breaking changes

None. `ExportedModelDiagnostics` (`#[non_exhaustive]`) gains
`wall_top_stubs_cut`, with `#[serde(default)]`.

## Related issues

Refs #1067. The other walls RE-320 section 7 lists as not drawn are as
before.
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