Skip to content

fix(ifc): the wall end rule reads a wall drawn along its location line, its join reach taken as its trim (#1474) - #2038

Closed
DrunkOnJava wants to merge 1 commit into
mainfrom
fix/1474-centreline-wall-ends
Closed

DrunkOnJava wants to merge 1 commit into
mainfrom
fix/1474-centreline-wall-ends

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

The wall end rule (RE-348, decide_ends in wall_tops.rs) now reads a wall drawn along its location line (BodySource partition_wall_centreline). It finds each end whose joins the record lists by matching the location curve's end against box_end, the body's end less its join trim (JoinTrimStart/JoinTrimEnd). Only a record-box wall has a trim. A wall drawn along its line has trims of 0, and its body's ends sit at the curve's ends plus the join reach (JoinReachStart/JoinReachEnd, RE-70, RE-73), so no curve end matched, and every end was skipped with no marker. centreline_trims gives such a wall a trim of -reach at each end a join decided, after checking that the body's end lies there, so the curve's end is found as on a box wall. Box walls are unchanged. The as-built half of #1474.

Motivation

#1474, as-built half. In the BIM4LCA office as built, walls 2056705 and 2056770 take the centreline path, where at permit they take the join-trimmed box. Their kept export (Measure 43667090229, main 5ff85692): BodySource partition_wall_centreline, JoinReachStart −0.2375 and JoinReachEnd 0.125 (2056705; 2056770 the reverse), JoinTrimStart/JoinTrimEnd 0, and no BodyEndSource or BodyEndRefusal. So the rule never ran on them, and they stay 15 of 100 plan points taller than Revit with nothing counting them.

Changes

  • src/ifc/export_content/wall_tops.rs: centreline_trims, used by decide_ends before join_trims.
  • changelog.d/fixed/1474-centreline-wall-ends.md.

Testing

  • tools/check-local.sh: CI runs it
  • End to end: full Measure (base main, nordic, r2025, samples, holdout) pending; rows registered before it is read

Rows registered before the run:

  1. Office as built, walls 2056705 and 2056770: their top over the stepped strip and their volume reach Revit's (wall_top_cover_vs_ifc, wall_quantities_vs_ifc), as fix(ifc): a wall end a joined wall's face lies inside is cut back over that height, as Revit cuts it (#1474) #2029 did for the permit file. Or each says why not (BodyEndRefusal).
  2. No wall equal to Revit's becomes different in any scorer on any model. Every other wall that moves is listed by model, with what it gained (BodyEndSource or BodyEndRefusal) and what its scorers say.
  3. same-project gates pass.

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

Breaking changes

None.

https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Closing unmerged as a measured negative. The tip is archived as refs/archive/2026-11-15/cited/e1e6696298c8.

The change does what it says: the end rule now reads the two centreline walls. But what it reads is not Revit's end, so it would label a guess as read.

  • Unfiltered Measure 43668820120 (e1e66962 against f961f2aa): 119 of 120 exports and 101 of 102 diagnostics.json are identical. Only the office as built moves. End sources wall_end_stepped_to_joined_walls go from 4 to 6, and the unmarked end_join_curve_not_at_the_box_end from 2 to none.
  • The two walls (wall scorers, Measure 43672596052). Revit's end of 2056705 is stepped twice. It reaches 183.071 over 0.0943 ft² (y 75.62 to 75.74, up to the base of 1344124 above), and only 179.298 over the 0.1601 ft² strip next to 1493966's face (y 75.43 to 75.62).
    • With the change, the upper band is Revit's (183.071 over 0.0943 ft²).
    • The strip is drawn to 182.087, the top of 1493966, the wall the record joins there. Revit's stops at 179.298, which no wall the record joins stands to: 1493966's levels in Revit's export are 182.087, 180.610, 179.134, 178.150, 176.509 and 176.181.
    • The volume goes from 30.8201 to 30.4961 ft³ against Revit's 30.0496, and the plan's taller points stay 5 of 100.
  • Row 1 is not met, and the wall would carry BodyEndSource wall_end_stepped_to_joined_walls for an end that is not Revit's. Before, it carried no claim. The project's rule is to fail closed, so this does not land.

What differs from the permit file, where #2029 got these walls exactly: 1493966 is type KS-1 as built and US-7 at permit. Revit's strip height as built (179.298) is not that wall's top. Where 179.298 comes from is the next thing to read for #1474's as-built half.

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