Skip to content

feat(ifc): a wall carries its Length where its curve cut back at its joins is as long as the curve (#1046) (RE-252) - #1049

Merged
DrunkOnJava merged 22 commits into
mainfrom
re/wall-length-ends
Oct 27, 2026
Merged

DrunkOnJava merged 22 commits into
mainfrom
re/wall-length-ends

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

A wall carries Qto_WallBaseQuantities.Length where its curve, cut back where its body meets the walls joined at its ends, is as long as the curve (RE-252, #1046 step 1). Revit's export writes a wall's Length as either of those two lengths, by how it draws the wall (one Qto_WallBaseQuantities set per wall, never a third value), so only there is Revit's value never in doubt: 88 of the BIM4LCA office's walls as built, 81 at permit, 46 of the R2025 models' and 5 of the held-out flowbim.ee house's, each Revit's, none different.

Motivation

W7: walls had only their Width. The maintainer chose (2026-10-26) to treat Revit's switch between the two lengths as an inconsistency of its export, to write Length only where both agree, and to compute the cut-back curve from the joins rather than limit it to unjoined walls; and to check the rule on held-out models fetched from their public sources, uploading only their counts.

Changes

  • src/native_walls.rs: NativeWall gains the record's face planes, each end step's exposed face map, the CDJoinInfo side joins and the join step partners; joined_at_ends and trimmed_ends read the cut-back curve, each end twice (record and join reach), taking it where the two agree.
  • src/partition_schema_mvp.rs: attach_wall_lengths sets WALL_LENGTH_FIELD where the cut-back curve is as long as the curve; src/ifc/export_content.rs writes it as Length.
  • examples/probe_re252_wall_ends.rs, tools/re/wall_length_vs_ends.py (the rule, scored against Revit's Length, and Revit's exported Axis placed along each wall's curve).
  • Measure: -f holdout=true scores research/holdout-models.tsv (the flowbim.ee house and two 255ribeiro projects, no licence stated) fetched from their sources; tools/ci/scrub-holdout-results.sh reduces their results, and BIMcollab's (also unlicensed, RE-198), to summary counts before upload. The 26 artifacts of the 24 earlier runs that uploaded BIMcollab's full results were deleted (the maintainer, 2026-10-26).
  • reports/element-framing/RE-252-wall-length.md, the moat addendum, README's base quantities row, docs/supported-profile.md, W7 in docs/release-1.0-criteria.md, changelog.d/added/wall-length.md; Core Interior's witness observations (+38 IfcQuantityLength).

Testing

  • This change against main, unfiltered: Measure 40434067592 (-f nordic=true -f r2025=true, every scorer). Office as built: quantities equal 20,247 → 20,335, different 1 → 1, Revit does not write 0 → 0; at permit 20,151 → 20,232, 1 → 1, 0 → 0; R2025: wall Length equal on 46 of 117, none different. Core Interior's 38 and RE1 Architecture's 1 counted apart (no base quantities in their exports). Every other scorer's output unchanged.

  • Held out: 40433993376 (-f holdout=true): the flowbim.ee house's Length equal on 5 of 59 walls, none different; the 255ribeiro projects get none. (Found there too, unrelated: a wall Width different on 1 of teste_export_2025's 3 walls, W7: a wall's Width differs from Revit's on 1 of 3 walls of a held-out Revit 2025 model #1048.)

  • Witness: Core Interior's two observations refreshed from the run's witness-*.json; tools/ci/witness-verdict.py replayed with CI's arguments: PASS on both, verdict.json unchanged.

  • Verified end to end on real Revit files (BIM4LCA office, VTT, CC BY-SA 4.0; puzzbobb's R2025 models, Apache-2.0; Core Interior and RE1, MIT; held out, the flowbim.ee house and 255ribeiro's projects, no licence stated, counts only)

  • Witness observations refreshed in this PR

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • Changelog fragment: changelog.d/added/wall-length.md
  • What stays missing is stated: the 519 office walls as built (508 at permit) whose cut-back curve is not as long as their curve, or whose ends the two readings do not agree on, or which another element cuts; every wall's areas and volumes (W7: base quantities Revit computes from its joined geometry (wall areas and volumes, mullion surfaces) #1046's next steps)
  • A reverse-engineering finding: probe under examples/, report and dated moat addendum
  • 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
  • No fixtures

I declare that this format finding comes only from public byte observations of the reference models and Revit's own exports of them (CLEANROOM.md source 1) and from reading Autodesk's open-source exporter revit-ifc (source 5: LengthCalculator, WallExporter, PropertyUtil.CreateWallBaseQuantities, cited, not copied); no Autodesk or ODA SDK source, disassembly or NDA material was used.

Breaking changes

None.

Related issues

Refs #1046 (step 1 of 3), #1016, #1048.

…ts record names at its ends, scored against Revit's Length (#1046) (RE-252)
…all's end from the other walls' records (#1046) (RE-252)
…control join set names, and the scorer meets their location lines (#1046) (RE-252)
…GLine and face planes, and the scorer stops each end at a face of a wall joined there (#1046) (RE-252)
… and the curve its driver names, and the scorer reads trimmed-line axes (#1046) (RE-252)
…, the export's version and each wall's body items (#1046) (RE-252)
…p partners and the partition reader's join reaches, and the scorer scores the free-wall rules (#1046) (RE-252)
… both join readings agree at each end and every join step partner is a wall (#1046) (RE-252)
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 27, 2026 02:03

@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: 828138c8a8

ℹ️ 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/ci/scrub-holdout-results.sh Resolved
…evit gives a Width the partition reader gives no centreline, against their layers (#1016)
@DrunkOnJava
DrunkOnJava merged commit 6fdfdbf into main Oct 27, 2026
38 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/wall-length-ends branch October 27, 2026 02:55
DrunkOnJava added a commit that referenced this pull request Oct 27, 2026
…the quantity census counts apart a Length whose two possible values differ (#1046) (RE-252) (#1052)

## Summary

rvt-ifc's export diagnostics list each wall's native curve length
(`decoded.wall_curve_lengths_feet`, by ElementId), and the quantity
census counts a wall's missing `Length` apart where that length and the
cut-back curve Revit's export draws as its `Axis` differ: Revit's export
writes either one as the wall's `Length` (RE-252), and the maintainer
chose (2026-10-26) to count those walls apart as an inconsistency of the
export rather than as missing.

## Motivation

#1046 and W7. RE-252 (#1049) writes a wall's `Length` only where its two
possible values agree. The other walls stayed in W7's missing count
though nothing in the model says which value Revit's export takes on
them.

## Changes

- `src/partition_schema_mvp.rs`: `WALL_CURVE_LENGTH_FIELD`, set by
`attach_wall_lengths` on every wall it matches.
- `src/ifc/mod.rs`: `DecodedExportDiagnostics::wall_curve_lengths_feet`,
read from the memoised production walk the diagnostics already take
their class counts from. The value is not written in the IFC file: the
maintainer chose (2026-10-27) to keep a value only the census reads out
of users' files. `docs/schemas/export-diagnostics.schema.json` and
`docs/export-diagnostics.md` describe it.
- `tools/re/qtos_vs_ifc.py`: reads each wall's curve length from the
`diagnostics.json` beside the rvt-rs IFC (as Measure writes it, or
`--diagnostics`) and the length of Revit's `Axis`, and counts a missing
`Length` apart where the two differ by more than 1e-4 ft. Half of that
comparison is rvt-rs's reading, so it counts apart only on a model where
Revit's `Length` is rvt-rs's curve's or its own `Axis`'s on every wall,
none neither; it prints the three counts.
- `README.md`, `docs/release-1.0-criteria.md` (W7), RE-252 §7,
`changelog.d/added/wall-curve-length.md`.
- `tools/ci/scrub-holdout-results.sh`: keeps the census's two RE-252
count lines for the held-out models (counts only).

## Testing

Measure
[40448077811](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40448077811)
(this change against `main`, unfiltered, `-f nordic=true -f r2025=true`,
every scorer, the scorers from this branch), `qtos_vs_ifc`,
`Qto_WallBaseQuantities.Length`:

| model | Revit's = rvt-rs's curve / = Axis / neither | counted apart |
scored | equal | missing | different |
|---|---|---:|---:|---:|---:|---:|
| office as built | 407 / 184 / 0 | 461 | 146 | 88 | 58 | 0 |
| office at permit | 329 / 181 / 0 | 388 | 201 | 81 | 120 | 0 |
| R2025 models (21 with walls) | | 71 | 46 | 46 | 0 | 0 |

- No wall's `Length` moves: the 88, 81 and 46 equal are #1049's. The
office's walls left missing are those whose two lengths agree but whose
ends the two readings do not.
- Every model's export is byte-identical to `main`'s (`ifc.sha256`), so
no witness observation or project-count fixture moves; `psets_vs_ifc`
and every other scorer: as on `main`. Each `diagnostics.json` lists the
curve lengths, and the census's output is the same as on the earlier run
of this PR that carried them in the IFC file
([40445560304](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40445560304)).

- [x] 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)

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] A user-visible change has its entry as a fragment under
`changelog.d/`
- [x] What stays missing is stated (58 and 120 office walls)
- [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

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary content. revit-ifc's `WallExporter` and
`PropertyUtil` were read for what its export does and not copied
(CLEANROOM.md source 5).
- [x] No fixtures

## Breaking changes

None.
DrunkOnJava added a commit that referenced this pull request Oct 27, 2026
… RE-189 and RE-211 closed (#1064)

## Summary

The README now lists what `main` adds after 0.9.0, and it no longer
lists as open three gaps that RE-189, RE-211 and the materials work
closed. It also fixes a broken anchor and a fuzz case count that was
wrong.

## Motivation

Griffin asked for the README to be brought up to date. It already
carried every measured figure from #1049 to #1063 in its tables, but:

- the "Support and evidence" link pointed at `#release-070-and-main`, a
heading that no longer exists;
- it sent readers to `[Unreleased]` in `CHANGELOG.md`, which is empty
since #938 moved unreleased entries to `changelog.d/`;
- it listed roofs by extrusion as not decoded (#883, closed by #930,
RE-211), the ElemTable's first ids as an open question (#760, closed by
#797, RE-189) and family instances' materials as decoder work (#34,
closed 2026-09-27; the table's own row covers RE-149 to RE-206);
- it said 38 fuzz regression cases, but `tests/fuzz_regressions.rs` has
64, all of them run in CI (`hardening fuzz_regressions` in
`tools/ci/test-targets.txt`). It already had 64 when the sentence was
written (#713).

## Changes

- `README.md`:
  - the anchor now points at "Release 0.9.0 and main";
- "Release 0.9.0 and main" lists what `main` adds, taken from the
`changelog.d/` fragments: base quantities, the diagnostics, and RE-248
and RE-251 to RE-255. On the office as built that is 21,065 quantities,
against 0.9.0's 20,157;
- the roofs row says a Revit 2025 roof by extrusion is drawn as its
section. Its RE-211 figures (1,187 of 1,187 vertices within 0.001 ft,
volume 1.00015 of Revit's) are stated apart from RE-199's 18 roofs,
since its volume is outside the 1e-4 those meet. The two gap lists now
say "outside Revit 2025", as `docs/status.md` already does;
  - the ElemTable row is Done, with RE-189's finding;
  - #34 is gone from the decoder-work list;
  - 38 becomes 64;
- main's walls' `Width` is called an extension to slanted and unplaced
walls, since 0.9.0 already had `Width` (RE-244).
- `docs/support-matrix.json`, row `element-record-roof-outlines`: the
notes still called #883 open. They now record RE-211's reading and
measurement, and the evidence lists its reader, writer, probe, scorer
and report. The status stays `partial`.

N/A: no code, no export change, no changelog fragment (docs-only).

## Testing

- `python3 tools/ci/api-doc-ids.py`: every cited RE finding has a report
(240 reports).
- `python3 tools/ci/wasm-api.py docs rvt-wasm/src/lib.rs README.md
docs/viewer-api.md`: 22 bindings, matching.
- `python3 tools/release/changelog.py check`: 18 fragments, valid.
- Every `](#...)` anchor in the README resolves to a heading, every
relative link resolves to a file, and there are no home paths.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [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

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0 (see
`CONTRIBUTING.md`)
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