Repository navigation
feat(elements): stop a wall layer by layer where it ends part way along another, as Revit draws T joints (#358) (RE-73) - #394
Merged
Conversation
…ng another, as Revit draws T joints (#358) (RE-73)
DrunkOnJava
enabled auto-merge (squash)
September 24, 2026 13:50
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_12cc93b9-0259-43d4-b3ed-0b18c3401ae4) |
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
Wall T joints (RE-73, #358). A wall whose centreline ends part way along another wall's centreline now stops against it the way Revit draws it. The other wall runs through, and this one stops layer by layer, by Revit's layer priorities (1 structure, 2 substrate, 3 thermal or air, 4 finish 1, 5 finish 2):
wall_bodies_vs_ifc.py/wall_layer_joins_vs_ifc.py --glbOn Snowdon, 280 of the 313 T ends that can be measured are right in every layer, and 960 of 1,025 layer ends match. Per wall: 186 better, 14 worse, faces unchanged.
The join lists name the other wall at only 8 of Snowdon's 334 T ends, so T joints are found by geometry. An end qualifies when:
The last condition comes from Core Interior. Eight of its walls end 0.083 ft from the end of the wall they reach, and Revit leaves them unjoined, running to that wall's centreline. A first draft without the condition broke all eight, so it was caught on the reference export before this PR.
Each T end names the wall it stops against:
JoinStartWallElementId/JoinEndWallElementIdandJoinStartRunsThrough/JoinEndRunsThroughfalse in the IFC, and "Start: stops at" / "End: stops at" in the viewer's element panel.What gets worse
Revit draws some T joints as a clean stop at the face, and nothing read predicts which. The report lists what was checked: wall types, the element-record box, RE-26's trims, the join lists and heights.
Changes
tee_join, called bybutt_joinsfor every end no other wall's centreline ends at.ButtJoindocs cover T joints.Testing
End to end. No unit tests were added.
wall_tee_joins_vs_ifc.py,wall_bodies_vs_ifc.py, andwall_layer_joins_vs_ifc.py --glb.rvt-ifc's IFC andrvt-gltf's GLB agree on all 1,078 walls, andrvt-ifctakes 10.0 s.ifc_world_aabb.pygives 351 of 360 walls world-exact, as on main, and no wall's box changes. The witness verdicts replay to PASS with all three observations matching, andifc_schema_arity.py --witness-agreementpasses.wall_tee_joins_vs_ifc.pyandwall_bodies_vs_ifc.py, as above.--profile ci,cargo +1.85.0 checkand the fuzz workspace check.Audit-honesty checklist
Legal and contribution hygiene
Related issues
Refs #358.
Note
Medium Risk
Changes wall join geometry, IFC join metadata, and viewer relations for many walls; improves Revit alignment overall but introduces known regressions where Revit uses unpredictable clean face stops.
Overview
RE-73 (#358) adds T-joint handling when a wall’s centreline ends partway along another perpendicular wall (no butt-join mate at that point). The stopping wall is trimmed layer by layer using Revit layer priorities (each layer passes lower-priority layers on the host and stops at equal or higher priority); single-layer walls stop at the host face. Detection is geometry-based (one overlapping host, perpendicular, end on centreline, far enough from the host’s ends).
element_record_wall_joins::tee_joinis invoked frombutt_joinsfor those ends; existing reach/layer-reach fields drive centreline bodies and layered profiles. Each T end records the partner wall withruns_through: falsein IFC join properties and the viewer element panel (“stops at”), including ~202 new partner properties on Core Interior (witness hashes updated).Snowdon metrics improve (e.g. axis-parallel walls with both Revit ends 516 → 675, layer ends matching Revit 3,925 → 4,290). Some Revit T joints drawn as a clean face stop are not predictable from file data—13 Snowdon walls and 3 of 7 RE1 walls can lose an end they had before.
Adds
probe_re73_tee_joins,wall_tee_joins_vs_ifc.py, the RE-73 report, doc/README/changelog updates, and a Playwright check on Core Interior wall 20804.Reviewed by Cursor Bugbot for commit 5b5877a. Configure here.