Skip to content

feat(ifc): a curtain panel drawn from its saved mesh as a vertical box carries its Width, the longer horizontal side, as Revit's export writes it (#1046) (RE-396) - #1637

Merged
DrunkOnJava merged 3 commits into
mainfrom
feat/plate-width
Nov 10, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
feat/plate-width

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

A curtain panel (an IfcPlate) that rvt-rs draws from the mesh Revit saved for it, where that mesh is a vertical box, now carries Qto_PlateBaseQuantities.Width, the longer horizontal side of the box, which is what Revit's export writes on the BIM4LCA office's panels. A panel whose mesh is not a box gets none. This lifts the leave-out of 2026-10-26 ("a curtain panel's Width is left out, since Revit's export gives none on 3 panels that nothing tells apart"): the box test tells those 3 apart, as RE-291 did for a joined column's Length.

Motivation

#1046 keeps the base quantities Revit computes in W7. The office's export writes Width on 257 of its 260 panels as built (266 of 269 at permit) and rvt-rs wrote none. The scorer mesh_features_vs_ifc.py (Measure 42676702980) shows the longer side of a panel mesh's plan equals Revit's Width on 257 of 257; the 3 panels Revit gives none are the 3 whose mesh volume is 0.5% under the product of its extents, that is not boxes. The report is RE-396.

Changes

  • src/ifc/mesh_volume.rs: box_plan_width, the longer horizontal extent where the mesh's volume is the product of its three extents to 1e-4 and the smallest extent is not the vertical one, with failure-first unit tests of the pure helper.
  • src/ifc/saved_meshes.rs: add_plate_widths gives it to the IfcPlate in Qto_PlateBaseQuantities where it holds none; --no-base-quantities leaves it out with the rest. src/ifc/export_content.rs: the comment that said the Width is left out.
  • changelog.d/added/396-plate-width.md, the report RE-396, and the W7 lines of docs/supported-profile.md, docs/release-1.0-criteria.md and docs/evidence.md.

Testing

box_plan_width is a pure helper with a few failure-first unit tests (a box, a non-box, a sloped panel, a vertical-extent-smallest guard, a degenerate mesh); the change itself is shown end to end on real files:

  • full / CI passed on the final head
  • Verified end to end on real Revit files: the unfiltered Measure with every flag and holdout=true, run 42857525344 (code 6241f253 against main at ae08c1da, 118 exports; the commits after it change only the report and docs). 22 exports move (the office as built and at permit, RE1 Architecture and 20 Autodesk samples, which have no Revit export to score); 96 are byte-identical, the held-out ones included. Office as built: equal 31,904 to 32,161 of 39,754, Qto_PlateBaseQuantities.Width 0 to 257 of 257; at permit 32,196 to 32,462 of 40,006, 0 to 266 of 266; different stays 1 and the quantities written that Revit's export does not stay 0 on both. Only the two office censuses and their MCP answers change; decoded.parameter_value_count and every other scorer are byte-identical. The rule is exercised by one project in two states (Revit 2024): no held-out export moves, so none holds a panel it applies to. RE-396 section 3.
  • If this touches the IFC exporter: Core Interior's export is byte-identical on both sides, so no witness observation changes.

Audit-honesty checklist

  • README / docs reflect the current state after this PR: the report, and the W7 lists of the supported profile, the 1.0 criteria and the evidence page.
  • A user-visible change has its entry as a fragment under changelog.d/added/.
  • If a limitation was resolved, the docs are updated: RE-396 section 3 and the three pages above (the leave-out of 2026-10-26 is replaced by the rule).
  • If a new limitation was introduced, it is documented in the PR body and in-code: a horizontal, sloped or cut-out panel gets none, and the rule rests on one project's two states (RE-396 section 4).
  • 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 report RE-396.

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 saved meshes of the BIM4LCA office's files (CC BY-SA 4.0) with Revit's own IFC4 exports of them. No Autodesk or ODA SDK source, disassembly, leaked document or NDA material was used, and nothing was copied or translated from revit-ifc.
  • No new test fixtures

Breaking changes

None.

Related issues

Refs #1046 (W7), #1016, #1191, RE-387, RE-247.

…x carries its Width, the longer horizontal side, as Revit's export writes it (#1046) (RE-396)

Revit's export writes Qto_PlateBaseQuantities.Width on 257 of the office's 260 curtain panels (266 of 269 at permit): the longer horizontal side of the panel's box. The 3 it gives none are the panels whose mesh is not a box. The rule gives Width where the mesh's volume is the product of its three extents to 1e-4 and the smallest extent is not the vertical one.
…ntal side of its box mesh, on the office's 257 and 266 panels (#1046) (RE-396)
…aid a curtain panel's Width is left out now name the rule (#1046) (RE-396)

The unfiltered Measure of the code commit (run 42857525344, 6241f253 against main at ae08c1d) moves only the two office files' quantity census: Width 0 to 257 of 257 as built and 0 to 266 of 266 at permit, different 1 and the quantities written that Revit's export does not 0; no held-out export moves.
@DrunkOnJava
DrunkOnJava merged commit 45cdcd4 into main Nov 10, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/plate-width branch November 10, 2026 17:55
DrunkOnJava pushed a commit to puzzbobb/rvt-rs that referenced this pull request Nov 10, 2026
…ecode ellipses, curved ruled surfaces and repeated ring points (RE-385)

Squashed from puzzbobb's two commits (e0cf3524, 5d12789e) and rebased by the maintainer onto main with DrunkOnJava#1629 and DrunkOnJava#1637; the conflicts were the imports, the stand-in comment and the BodySource test in src/ifc/saved_meshes.rs (a roof's level block and a turned box are both stand-ins, both kept) and the addenda at the end of docs/format-reconnaissance.md (both kept).
DrunkOnJava added a commit that referenced this pull request Nov 10, 2026
…ed code, against main after the wall quantities landed (#1046) (RE-396) (#1638)

## Summary

RE-396's report and the 1.0 criteria's RE-396 sentence quoted the
Measure made before #1637 was rebased onto #1629, which had landed the
wall quantities in between. They now carry the Measure of the rebased
code (run
[42864169952](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42864169952),
`376035fb` against `main` at `a8a126fb`): the office's equal quantities
go 32,924 to 33,181 of 39,754 as built and 33,243 to 33,509 of 40,006 at
permit, `Qto_PlateBaseQuantities.Width` 0 to 257 of 257 and 0 to 266 of
266. Different (1), the quantities written that Revit's export does not
(0) and the 22 exports that move are as the earlier run read.

## Motivation

#1637 merged with the earlier numbers in place because its rebased
Measure was still running; this makes the pages and the report say what
the merged code measured.

## Changes

- `reports/element-framing/RE-396-plate-width.md`,
`docs/release-1.0-criteria.md`: the run, the commits and the equal
counts.

## Testing

Documentation only; `tools/ci/measured_numbers.py` and
`tools/ci/api-doc-ids.py` pass.

- [ ] `full / CI passed` on the final head
- [x] No output changes: no `src/` file moves.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR: the report
and the criteria page.
- [x] A user-visible change has its entry as a fragment: none
(documentation only).
- [x] If a limitation was resolved, the docs are updated: n/a.
- [x] If a new limitation was introduced, it is documented: none.
- [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: the report RE-396 (existing).

## 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`). Documentation of
numbers measured in an earlier PR; no new source material.
- [x] No new test fixtures

## Breaking changes

None.

## Related issues

Refs #1046 (W7), RE-396, #1637.
DrunkOnJava added a commit that referenced this pull request Nov 10, 2026
… request has (#1639)

## Summary

A new CI step in the PII guard job, `tools/ci/check_re_id_reuse.py`,
fails a pull request that adds a report (`reports/**/RE-NN-*.md`) whose
id another report of the merged tree already has, or that an earlier
open pull request (a lower number) also adds. The later pull request
fails, as `docs/maintaining.md` already says it is renumbered. Griffin
asked for it through the project questions on 2026-11-10.

## Motivation

On 2026-11-10 two pull requests carried an RE-392 before either was
opened, and a contributor's pull request took an id another was about to
use: renumbering after both land means rewriting the code, probes and
changelog entries that cite it. The rule existed on paper
(`reports/README.md`, `docs/maintaining.md`); nothing enforced it.

## Changes

- `tools/ci/check_re_id_reuse.py`: reads the reports a pull request adds
from the API's file list (a report it only edits or renames is not new),
looks for another path with the id in the checked-out tree (the merge of
the pull request into `main`, so that is `main`'s, or the pull request's
own second file), and for an earlier open pull request adding the same
id. API failures are NOT MEASURED warnings, as `cited-commits.py` does,
never red. A push checks nothing.
- `.github/workflows/ci.yml`: the step, after the API docs step, with
`GH_TOKEN`, and a step for the pure tests.
- `tools/ci/test_check_re_id_reuse.py`: ten failure-first cases of the
pure rule (an id on main at another path, two new reports under one id,
an earlier open pull request, a fresh id, the pull request's own file,
`RE-12.md`, `RE-3` against `RE-30`, non-report paths, a subdirectory, no
new report).
- `docs/maintaining.md`, `reports/README.md`: say that CI enforces it.

## Testing

End to end against the real API and a real checkout, from a scratch
worktree of `main` (the pure rule also has the failure-first tests this
repository keeps for its CI scripts,
`tools/ci/test_check_re_id_reuse.py`, run in the PII guard job: a pure
helper, ten cases):

- [x] PR #1620 (adds RE-385, no earlier open pull request): passes, "the
1 new report(s) of #1620 take ids that main and the earlier open pull
requests do not have".
- [x] The same with a tracked `reports/element-framing/RE-385-other.md`
added to the tree: `::error::RE-385 is already the id of
reports/element-framing/RE-385-other.md on main: take the next free id`,
exit 1.
- [x] A pull request numbered 1639 whose files are stubbed to add
`RE-385-dup.md`, against the real open pull requests: `::error::RE-385
is also added by #1620, opened first (...)`, exit 1.
- [x] A push event: "not a pull request, nothing to check", exit 0. A
pull request that adds no report (#1638): "adds no report", exit 0.
- [x] The pure rule (`reused`) tried against nine cases: an id on main
at another path, two new reports under one id, an earlier open pull
request, a fresh id, the pull request's own file in the merge tree, a
`RE-12.md` name, non-report paths, `RE-3` against `RE-30`, a
subdirectory report. All as expected.
- [x] `actionlint` and a YAML load of `ci.yml` pass; the new file has
the mode of its neighbours.

## Audit-honesty checklist

- [x] No user-visible change: no changelog fragment.
- Limits: a pull request that adds a report with an id main does not
have and that no other open pull request has passes even if a draft
claim exists elsewhere (a claims file is not read); a closed-unmerged
pull request's id is free; only the first 100 open pull requests and 300
files per pull request are read.

## Breaking changes

None.

## Related issues

Griffin's 2026-11-10 project questions; follows the RE-392 collision
(#1632, #1637).
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