Repository navigation
fix(ifc): a wall end a joined wall's face lies inside is cut back over that height, as Revit cuts it (#1474) - #2029
Merged
Conversation
…r that height, as Revit cuts it (#1474)
DrunkOnJava
marked this pull request as ready for review
November 15, 2026 02:04
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
The wall end rule (RE-348,
read_endinwall_tops.rs) now reads an end where a joined wall's face lies inside the wall's end over a stretch of height. It used to refuse that end withjoined_wall_face_inside_the_wall. A band of height whose face lies inside the end has a negative reach.strips_offirst pulls the end in to the least reach (cut_back, 0 or less), and builds the strips from the reaches beyond that, measured from the box's end as before. The stepped plan's own plan stops at the cut-back end, and the strip carries it out to where it reaches below. An end pulled in over its full height has no strips, andmove_endsshortens it. A face inside the end by more than the joined wall is thick is still refused, as one too far out is. Part of #1474: the permit half.Motivation
#1474 (from #1470, RE-348): at building permit, BIM4LCA office walls 2056705 and 2056770 keep their record ends where Revit cuts them back by 0.0985 ft above 182.087 ft. They are 0.339 ft³ over Revit's volume. #1473's far-end stub took 0.207 of that and none of the step. The issue's as-built half (the same two walls taking the centreline path, which the end rule never reaches) is not touched here.
Changes
src/ifc/export_content/wall_tops.rs:read_endaccepts a negative reach up to the joined wall's thickness.strips_ofreturns the strips and the cut-back.Endcarriescut_back. The stepped plan's own plan is pulled in by it.changelog.d/fixed/1474-wall-end-cut-back.md.Testing
Unfiltered: Measure 43663221437,
26b45a56againstac1ff346, with samples, nordic, r2025 and holdout. 117 of 120 exports are identical, and the 3 that differ are the BIM4LCA office at permit and the timber office as built and at permit.same-project gatespass. Filtered, scored: Measure 43665221220, the same head and base on those three files, withwall_top_cover_vs_ifc,wall_quantities_vs_ifcandwall_rules, IFCs kept.levelsgoes from rvt-rs 183.727 to 182.087 over the 0.0807 ft² strip, which is Revit's 182.087. The area taller than Revit's goes from 0.0807 to 0 ft², and the volume from 27.3554 to 27.2229 ft³, Revit's 27.2229, on each.NetVolumeequal to the volume goes from 300 to 302 of 589.wall_rules: end sourceswall_end_stepped_to_joined_wallsfrom 4 to 6, and end refusalsjoined_wall_face_inside_the_wallfrom 2 to none.joined_wall_faces_overhang_the_lower_end: with the face read, the later strip check finds the end reaching further at a greater height. The kept IFCs differ in those 5 walls'BodyEndRefusaltext and nothing else. No other model of the 120 has the case.wall_top_cover_vs_ifcstays at 579 of 589 equal over the plan, and every per-wall line but the two walls' is the same.wall_bodies_vs_ifc,wall_ends_cv_vs_ifcandwall_heights_vs_ifcare byte-identical on the permit office.tools/check-local.sh: CI runs itAudit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.