Repository navigation
feat(ifc): draw doors and windows from their saved meshes by default - #1089
Conversation
There was a problem hiding this comment.
💡 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".
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.
1029257 to
749b55c
Compare
|
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).
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). |
…#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.
Summary
rvt-ifcandrvt-gltfnow 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-mesheskeeps the boxes;--saved-meshesstill 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-mesheson 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) andattach_scoped_with_control;attach/attach_with_controlkeepAll.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-meshesline keeps its wording, which ci.yml parses).changelog.d/changed/saved-meshes-doors-windows.md.Testing
Unit tests are banned in this repository: do not add them.
Audit-honesty checklist
Legal and contribution hygiene
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-meshesrestores the boxes.Related issues
Refs #227, #255, #409.