Skip to content

feat(ifc): a door's or window's opening is the outline its symbol cuts, through the instance's transform (#227) (RE-215) - #946

Merged
DrunkOnJava merged 4 commits into
mainfrom
feat/227-loop-openings
Oct 24, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
feat/227-loop-openings

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

On Revit 2024 and 2025, a door or window whose type gives no opening now cuts its host along the outline its symbol cuts (RE-215), placed by the instance's transform (RE-87). The cut runs through the wall. Against Revit's own export, the openings are now within 0.001 ft:

  • Core Interior: 124 of 132 doors, which were within 0.26 ft, and all 6 windows, which were within 0.1 ft;
  • RE1 Architecture: all 4 doors, which were within 0.26 ft.

Part of #227.

Motivation

#227 asks for each door's and window's opening as Revit cuts it, not the element's box. RE-215 (#936) read the outline that the symbol drawing a door or window cuts in its host.

Revit places a door's IFC frame at its opening's corner, which hides where that outline sits, so the opening has to be measured in the instance's own frame. examples/probe_227_opening_frames.rs and tools/re/opening_frames_vs_ifc.py do that (run 40118231668). There, the opening's X and Z ranges equal the outline's within 0.001 ft on every door and window measured:

  • Core Interior: 124 doors and 6 windows;
  • RE1 Architecture: 4 doors;
  • each R2025 model: 4 doors and windows.

Across the wall the opening runs from the outline's plane to its mirror, which is the host's thickness, centred on the origin.

Changes

  • src/partition_schema_mvp.rs:
    • attach_cut_loop_sizes also gives each door and window with an outline and a transform, but no opening from RE-93 or RE-94, RE-93's opening fields:
      • centred on the outline's middle along the instance's X axis, so an off-centre outline is placed right;
      • from the outline's bottom;
      • the outline's width and height;
    • the exporter cuts it as it cuts RE-93's, across the host's band;
    • push_filler_opening takes that offset along the axis, and its two existing callers pass 0.
  • examples/probe_227_opening_frames.rs and tools/re/opening_frames_vs_ifc.py, the research above.
  • reports/element-framing/RE-215-symbol-cut-loops.md §7, README.md (the openings row), docs/supported-profile.md, docs/support-matrix.json (native-symbol-cut-sizes), changelog.d/added/loop-openings.md.
  • research/witness/magnetar-2024-core-interior*/observations/rvt-rs.json, regenerated by Measure. 130 more placements and points and 910 more property values; nothing in the verdicts' semantic surface changes.

Testing

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

  • tools/check-local.sh passes: CI runs it. Measure built the head with --profile ci, and rustfmt and the let-chain scan pass.

  • Verified end to end on real Revit files: the command, the files (and their licence), and the measured result against Revit's own export are in the PR body, with the script or probe that reproduces it

    • Measure 40118849373, this branch against main, with the R2025 models. Files: Core Interior (Revit 2024, MIT) and RE1 Architecture (Revit 2025, MIT), with Revit's own exports. opening_boxes_vs_ifc:
    main this PR
    Core Interior doors 132 within 0.26 ft 124 within 0.001 ft, 8 within 0.26 ft
    Core Interior windows 6 within 0.1 ft 6 within 0.001 ft
    RE1 Architecture doors 4 within 0.26 ft 4 within 0.001 ft
    • openings_vs_ifc likewise: 130 of Core Interior's openings and RE1's 4 within 0.01 ft, none before.
    • The IFC changes on those two models only. The R2025 models' doors and windows already had RE-93's openings and are identical, and every other scorer output is identical on all 29 models.
  • If this touches the IFC exporter: the witness verdicts replay or the changed observations are refreshed in this PR. Both rvt-rs observations are refreshed from the run's head output.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • If a new limitation was introduced, it is documented in the PR body and in-code. These are left as they were:
    • Core Interior's 8 doors with no RE-87 transform keep their box opening;
    • 2023, 2026 and 2027;
    • Snowdon's RE-93 and RE-94 openings, which are already exact.
  • 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
  • If this is a reverse-engineering finding: a reproducible probe under examples/ and the report's dated section are included. The finding extends RE-215, so it is RE-215 §7, not a new number.

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: the rule comes from comparing the corpus files' own records, read through their schema, with Revit's IFC exports. No Autodesk SDK source, disassembly, leaked documents or NDA material was used.

Breaking changes

None.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 24, 2026 18:10
@DrunkOnJava
DrunkOnJava merged commit 2a0e5de into main Oct 24, 2026
27 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/227-loop-openings branch October 24, 2026 18:14
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