Skip to content

feat(ifc): draw doors and windows from their saved meshes by default - #1089

Merged
DrunkOnJava merged 3 commits into
mainfrom
feat/saved-meshes-doors-windows-default
Oct 29, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
feat/saved-meshes-doors-windows-default

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

rvt-ifc and rvt-gltf now draw every door and window whose body would be its record's bounding box from the mesh Revit saved for it, by default, on Revit 2023 to 2027 and where the whole mesh decodes. --no-saved-meshes keeps the boxes; --saved-meshes still draws every other boxed class too.

Motivation

Griffin's decision, 2026-10-29 (asked with the measured numbers): doors and windows are the largest record-box gap on the CI models. Measure run 40932136360 with --saved-meshes on main af50068: every vertex within 0.001 ft of Revit's export on all 132 of Core Interior's doors and 6 windows (record-box bodies 138 to 0) and all 269 of the BIM4LCA office's windows; on the office 221 of 269 doors keep their box because their saved graphics do not decode whole (RE-224).

Changes

  • src/ifc/saved_meshes.rs: SavedMeshScope (All, DoorsAndWindows) and attach_scoped_with_control; attach / attach_with_control keep All.
  • src/bin/rvt_ifc.rs, src/bin/rvt_gltf.rs: --no-saved-meshes; the default scope is doors and windows on 2023 to 2027 (where native saved graphics are read), none elsewhere; the stderr line names the scope (the --saved-meshes line keeps its wording, which ci.yml parses).
  • Docs: README, docs/supported-profile.md, docs/status.md, docs/compatibility.md, the W6 row; ci.yml's comment; changelog.d/changed/saved-meshes-doors-windows.md.

Testing

Unit tests are banned in this repository: do not add them.

  • tools/check-local.sh: not run locally by policy; CI runs every gate.
  • Verified end to end on real files: run 40932136360 above measured the bodies this default writes. Measure on this head against main follows (every model; the expected movement is the door and window bodies on 2023 to 2027 models).
  • Exporter output changes on Core Interior and Einhoven, so the witness observations and any pinned counts move; refreshed from this PR's CI artifacts in a follow-up commit.

Audit-honesty checklist

  • Docs say doors and windows are drawn from saved meshes by default, and that the office's 221 doors keep their box.
  • Changelog fragment under changelog.d/changed/.
  • No emojis, private paths or internal jargon.

Legal and contribution hygiene

  • Apache-2.0; no Autodesk material.

Breaking changes

Rust API: additive (SavedMeshScope, attach_scoped_with_control). Behaviour: default exports of Revit 2023 to 2027 files draw doors and windows from their saved meshes; --no-saved-meshes restores the boxes.

Related issues

Refs #227, #255, #409.

@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: cdc69d5481

ℹ️ 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 src/bin/rvt_ifc.rs Resolved
Griffin's decision (2026-10-29): rvt-ifc and rvt-gltf draw every door and
window whose body would be its record's box from the mesh Revit saved for
it, on Revit 2023 to 2027, where the whole mesh decodes. Measure run
40932136360 with --saved-meshes: every vertex within 0.001 ft of Revit's
export on Core Interior's 132 doors and 6 windows and the BIM4LCA office's
269 windows; 221 of the office's 269 doors keep their box, their saved
graphics not decoding whole.

- saved_meshes::SavedMeshScope (All, DoorsAndWindows) and
  attach_scoped_with_control; attach and attach_with_control keep All.
- rvt-ifc / rvt-gltf: --no-saved-meshes keeps every box; --saved-meshes
  still draws every boxed class.
- Docs: README, supported profile, status, compatibility, the W6 row.
…or and window meshes

Both artifacts' observations from this PR's CI (run 40943501957,
octetproof-core-interior): 138 IFCEXTRUDEDAREASOLID boxes become 138
IFCTRIANGULATEDFACESET bodies (the 132 doors and 6 windows), with the
placements and profiles they no longer use. witness-verdict.py replays
PASS on both with the verdict files unchanged.
@DrunkOnJava
DrunkOnJava force-pushed the feat/saved-meshes-doors-windows-default branch from 1029257 to 749b55c Compare October 29, 2026 20:09
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Measure run 40943497130 (cdc69d54 against main c2bb334, every model and scorer; the rebase onto main since added only #1087's docs): of 89 models, five IFCs moved, each only in door and window bodies and what follows from them (box counts, diagnostics body sources, schema counts).

Model Drawn from saved meshes Every vertex within 0.001 ft of Revit's, both ways Volume within 1%
Core Interior 132 doors, 6 windows 138 of 138 138
BIM4LCA office as built 269 windows, 48 doors 317 of 317 313
BIM4LCA office at permit 265 windows, 46 doors 311 of 311 309
RE1 Architecture 5 doors 5 of 5 5
Einhoven 2 bodies no Revit export to score

On the office, 221 doors as built and 223 at permit keep their record box, their saved graphics not decoding whole. On 4 office doors (2 of type O-7:O-7.12x23) the surfaces coincide with Revit's within 0.001 ft both ways but the enclosed volume differs by more than 1%; that is measured and left as it is here. No wall, slab, roof, stair or MEP scorer moved. The witness observations for Core Interior were refreshed in 749b55c (replay PASS).

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 29, 2026 20:20
@DrunkOnJava
DrunkOnJava merged commit 45448a2 into main Oct 29, 2026
31 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/saved-meshes-doors-windows-default branch October 29, 2026 20:48
DrunkOnJava added a commit that referenced this pull request Oct 29, 2026
…#227) (#1095)

## Summary

Part of #227 (RE-225). A window set in a wall whose symbol cuts a solid
(`m_complexCutGeoms`) and no outline had its opening cut to the wall's
thickness and its box's height. Revit's export cuts it to the solid:
deeper across the wall and lower at the bottom (on the BIM4LCA office's
windows 0.328 ft deeper each side and 0.059 ft lower). The opening is
now as deep as the solid's extent across the wall, centred on it, and as
tall as the solid, down from the body's top.

Doors are left as they were. The same rule moved four office doors'
openings closer to Revit's but brought none within 0.001 ft (Measure run
40945971175: one within 0.1 ft, three within 0.26 ft, five still over 1
ft), so a door keeps its box opening, as fail-closed asks.

## Changes

- `src/native_symbol_cuts.rs`, `src/partition_schema_mvp.rs`: the
extents of the solid a symbol cuts, carried as `CutSolidWidth`,
`CutSolidDepth` and `CutSolidHeight` in the element's own
record-geometry set.
- `src/ifc/mod.rs`: `opening_cuts_through_hosts` uses them for an
`IfcWindow`.
- `changelog.d/fixed/opening-cut-solids.md`.

## Testing

Unit tests are banned in this repository: do not add them.

- [x] Measure run 40952407086 (office only, before the rebase):
`opening_boxes_vs_ifc` IfcWindow within 0.001 ft on 269 of 269 as built
and 265 of 265 at permit (main: within 1.0 ft); `openings_vs_ifc` within
0.01 ft 185 → 454 and 185 → 450; door rows unchanged.
- [x] Measure run 40955340467 (rebased on main, with #1089's saved
meshes; unfiltered, nordic and r2025, every scorer): of 31 models only
the two office versions move, only in `opening_boxes_vs_ifc` and
`openings_vs_ifc`: IfcWindow within 1.0 ft → within 0.001 ft on 269 and
265, door rows unchanged.

No door or window of Core Interior, RE1 or puzzbobb's Revit 2025 models
cuts a solid, so their openings do not move.
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