Skip to content

fix(ifc): a door's opening in a second wall along its own is cut ten feet deep about its own opening's face, where the two walls span the same heights (#1165) (RE-471) - #2036

Merged
DrunkOnJava merged 10 commits into
mainfrom
fix/1165-parallel-door-openings
Nov 15, 2026
Merged

DrunkOnJava merged 10 commits into
mainfrom
fix/1165-parallel-door-openings

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

A door that also cuts a second wall running along its own now gets that opening, where the two walls span the same heights. Revit's export cuts it 10 ft deep across the two walls, as wide and as tall as the door's own opening, centred on the face of the door's own opening on the side the door's local Y points away from. door_cut (src/ifc/wall_cut_openings.rs) used to refuse every such step as door_second_wall_parallel_to_door_wall. It now writes the opening where the second wall's base and top are the door's own wall's (0.01 ft). It still refuses a door whose Y runs along its wall, a second wall of other heights (door_second_wall_spans_other_heights_than_door_wall), and, as for every opening, a box above or below its wall. Part of #1165; RE-471.

Motivation

#1165: the parallel second-wall step is the largest single reason for door openings Revit writes and rvt-rs does not: 7 to 10 steps on each BIM4LCA file, 38 on Snowdon Towers Architectural.

What was measured before this head

RE-471 sections 2 to 4 have the detail:

  • The box: on the eight BIM4LCA files, all 82 of these openings in Revit's export are 10 ft deep, centred on the own opening's face on the door's −Y side, with the own opening's width and height. Built from rvt-rs's own export, the box is Revit's on 82 of 82, and 24 of 24 on Snowdon, scored locally against Revit's export.
  • Which steps get one, read on the PR's runs:
    • Writing every parallel step that passes the height check (1ee5c187) gave 23 of Revit's openings and 1 extra (3064459 in 1619525, office as built).
    • Also skipping the height check (643b6e4a) gave 42 more of Revit's but 7 wrong of 50 (4 on the housing, 3 on Snowdon), so that is reverted.
    • The same-heights condition was registered here before the other files were read for it. Among openings within their wall's height, it holds on all eight files: the 23 Revit writes have equal heights, and the 1 it lacks does not. It says nothing of the openings that stand above or below their wall: of those, Revit writes 43 (42 BIM4LCA, 1 Snowdon) and leaves out 7. Nothing read tells them apart, so they stay unwritten.
  • Snowdon gains nothing. 34 of its 38 steps are refused because the door's width lies beyond the second wall's end, a separate slice for Unfilled openings Revit's export writes and rvt-rs does not: a door's further cuts, curtain-wall cuts and fire hose cabinets (591 values on the office) #1165.

Changes

  • src/ifc/wall_cut_openings.rs: door_cut takes the door's local Y (door_y_axis) and the door's wall's heights (body_heights). It widens the across axis to DOOR_PARALLEL_DEPTH_FEET (10 ft) about the own box's face on the −Y side, where the walls' heights agree within DOOR_WALL_HEIGHT_TOLERANCE_FEET.
  • docs/export-diagnostics.md: the two reasons.
  • reports/element-framing/RE-471-parallel-door-openings.md, changelog.d/fixed/1165-parallel-door-openings.md.

Testing

  • tools/check-local.sh: CI runs it
  • End to end: unfiltered Measure 43677087993 on 5862892f (43675088914 resolved the PR head before the push reached it and measured 72799f0f, the height-checked rule alone: it holds row 1, with the one office extra this head removes) (base the merge base; nordic, r2025, samples, holdout), and Snowdon scored locally. Rows registered before either is read:
  1. On the BIM4LCA files, the IfcDoor in IfcWall openings rvt-rs writes rise by 23 in all (5, 6, 5, 5, 1, 1, 0, 0 by file), each with Revit's box, and "written that Revit's export does not" is unchanged on every file.
  2. door_second_wall_parallel_to_door_wall falls to 0 on the BIM4LCA files. The steps not written move to opening_outside_wall_height (3, 3, 2, 2, 9, 9, 9, 9) and to door_second_wall_spans_other_heights_than_door_wall (1 on the office as built).
  3. Snowdon (local): no opening is added and none is lost.
  4. Every other export is byte-identical, and same-project gates pass. The held-out files move only by counts.

Read (RE-471 section 5):

  1. Held. Door openings in a second wall go 25→30, 33→39, 16→21, 16→21, 1→2, 1→2, 3→3 and 3→3: 23 new, each with Revit's box, GlobalId, Depth, Height and both Reference values. "Written that Revit's export does not" is unchanged on every file (3, 4, 2, 2, 1, 1, 1, 1). In the quantity and property censuses, different and the values Revit does not write are unchanged.
  2. Held in total, not in the split registered. door_second_wall_parallel_to_door_wall is 0 on every BIM4LCA file. The heights are compared before the box is held to its wall, and every step whose box stands above or below its wall also has walls of other heights. So all the others count as door_second_wall_spans_other_heights_than_door_wall (4, 3, 2, 2, 9, 9, 9, 9), none as opening_outside_wall_height.
  3. Held. Snowdon, scored locally on run 43675092848's export of 5862892f: 81 unfilled openings written, 78 of them Revit's, before and after. Its 38 parallel steps are now 15 not in the second wall, 20 of other heights and 3 above or below their wall.
  4. Held. 114 of 120 exports are identical; the 6 that move are the BIM4LCA files with new openings. No held-out file moves, and same-project gates pass on 5862892f ("15 samples held to their earlier saves, and the Areas on 4 saves and on the 2021 save"). The measured commit is archived under refs/archive/2026-11-15/cited/5862892f32fd. The head 621bfbd7 changes only notes, one of them a src doc comment. Its own run, 43679207414, is for the gates verdict and the byte identity with 43677087993.

Audit-honesty checklist

  • Changelog fragment (its claim to be checked against row 1)
  • No emojis, private paths or jargon

Legal and contribution hygiene

  • Apache-2.0; no Autodesk proprietary source; no fixtures. The rule is read from Revit's own IFC exports only (CLEANROOM.md source 1).

Breaking changes

None.

https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Status, and a row registered before it is read.

Measured so far:

  • 1ee5c187, the rule with the wall-height check: 23 openings of Revit's on the BIM4LCA files, all with Revit's box, and 1 that Revit's export lacks: 3064459 in 1619525, office as built. Snowdon: 0 written, since all 4 of its parallel steps that pass the other checks stand above their wall.
  • 643b6e4a, which skips the height check for these openings: 42 more of Revit's, but 4 more extras (1429543 in 1427469 on the four housing files). On Snowdon it writes 4, of which 1 is Revit's (787988 in 750773) and 3 are not (1309129 in 1341852, 660430 in 1299759, 760053 in 697096). All 4 stand above their wall's top. The height skip is reverted: it is wrong on 7 of 50.
  • Snowdon still misses 23 of Revit's 24. 34 steps there are refused as door_opening_not_in_second_wall, and Revit writes door 1309129's box in walls that box does not reach. That is read separately and not changed here.

Registered row (before the timber office, the housing and Snowdon are read for it): among the parallel-door openings that pass the height check, Revit writes the opening exactly where the second wall's body spans the same heights as the door's own wall's body (base and top within 0.01 ft), and leaves it out wherever they differ. On the office as built, the one extra has a second wall 4.35 m tall against the door's wall's 3.5 m; every other one has equal heights. That is one counter-example, so the row stands only if it holds on every other file. If it fails anywhere, the rule is narrowed differently or nothing new is written.

@DrunkOnJava DrunkOnJava changed the title fix(ifc): a door's opening in a second wall along its own is cut ten feet deep, centred on its own opening's face on the door's -Y side (#1165) (RE-471) fix(ifc): a door's opening in a second wall along its own is cut ten feet deep about its own opening's face, where the two walls span the same heights (#1165) (RE-471) Nov 15, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 15, 2026 04:58
…eside a wall of other heights, which are not written, and the condition separates only those within their wall (#1165)

Claude-Session: https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
@DrunkOnJava
DrunkOnJava merged commit d3e70f1 into main Nov 15, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1165-parallel-door-openings branch November 15, 2026 05:28
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