Repository navigation
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
Conversation
…feet deep, centred on its own opening's face on the door's -Y side (#1165) (RE-471) Claude-Session: https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
…allel second wall is centred on (#1165) Claude-Session: https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
…as tall as the door's own, whatever the wall's height (#1165) (RE-471) Claude-Session: https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
Owner
Author
|
Status, and a row registered before it is read. Measured so far:
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. |
…all-height check again: written above or below its wall it is wrong on 7 of 50 (#1165) (RE-471) Claude-Session: https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
…where the two walls span the same heights (#1165) (RE-471) Claude-Session: https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
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
… a second wall of other heights (#1165) (RE-471) Claude-Session: https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 asdoor_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:
1ee5c187) gave 23 of Revit's openings and 1 extra (3064459 in 1619525, office as built).643b6e4a) gave 42 more of Revit's but 7 wrong of 50 (4 on the housing, 3 on Snowdon), so that is reverted.Changes
src/ifc/wall_cut_openings.rs:door_cuttakes the door's local Y (door_y_axis) and the door's wall's heights (body_heights). It widens the across axis toDOOR_PARALLEL_DEPTH_FEET(10 ft) about the own box's face on the −Y side, where the walls' heights agree withinDOOR_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 it5862892f(43675088914 resolved the PR head before the push reached it and measured72799f0f, 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:IfcDoor in IfcWallopenings 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.door_second_wall_parallel_to_door_wallfalls to 0 on the BIM4LCA files. The steps not written move toopening_outside_wall_height(3, 3, 2, 2, 9, 9, 9, 9) and todoor_second_wall_spans_other_heights_than_door_wall(1 on the office as built).same-project gatespass. The held-out files move only by counts.Read (RE-471 section 5):
Depth,Heightand bothReferencevalues. "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,differentand the values Revit does not write are unchanged.door_second_wall_parallel_to_door_wallis 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 asdoor_second_wall_spans_other_heights_than_door_wall(4, 3, 2, 2, 9, 9, 9, 9), none asopening_outside_wall_height.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.same-project gatespass on5862892f("15 samples held to their earlier saves, and the Areas on 4 saves and on the 2021 save"). The measured commit is archived underrefs/archive/2026-11-15/cited/5862892f32fd. The head621bfbd7changes only notes, one of them asrcdoc comment. Its own run, 43679207414, is for the gates verdict and the byte identity with 43677087993.Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut