Skip to content

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
DrunkOnJava merged 1 commit into
mainfrom
fix/1474-wall-end-cut-back
Nov 15, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
fix/1474-wall-end-cut-back

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

The wall end rule (RE-348, read_end in wall_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 with joined_wall_face_inside_the_wall. A band of height whose face lies inside the end has a negative reach. strips_of first 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, and move_ends shortens 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_end accepts a negative reach up to the joined wall's thickness. strips_of returns the strips and the cut-back. End carries cut_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, 26b45a56 against ac1ff346, 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 gates pass. Filtered, scored: Measure 43665221220, the same head and base on those three files, with wall_top_cover_vs_ifc, wall_quantities_vs_ifc and wall_rules, IFCs kept.

  1. Holds. Office at permit, walls 2056705 and 2056770: levels goes 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. NetVolume equal to the volume goes from 300 to 302 of 589. wall_rules: end sources wall_end_stepped_to_joined_walls from 4 to 6, and end refusals joined_wall_face_inside_the_wall from 2 to none.
  2. Every other wall the rule refused: 5 on each timber office file. They are still refused, now as 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' BodyEndRefusal text and nothing else. No other model of the 120 has the case.
  3. Holds. No wall equal to Revit's becomes different: wall_top_cover_vs_ifc stays 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_ifc and wall_heights_vs_ifc are byte-identical on the permit office.
  • tools/check-local.sh: CI runs it
  • End to end: Measure

Audit-honesty checklist

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

Legal and contribution hygiene

  • Apache-2.0; no Autodesk proprietary source; no fixtures

Breaking changes

None.

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 15, 2026 02:04
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