Skip to content

fix(ifc): a wall end is kept, and counted, where a wall the end rule does not read stands where it would be drawn (#1583) (RE-337) - #2041

Merged
DrunkOnJava merged 2 commits into
mainfrom
fix/1583-unread-walls-in-strips
Nov 15, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
fix/1583-unread-walls-in-strips

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

The wall-end rule no longer draws a wall's end through a wall it does not read. Such an end now keeps the end its record gives and is marked with the new reason unread_wall_stands_in_the_added_end. Before this, those walls were never looked for, so the end was drawn through them with no marker and no count.

Motivation

#1583. Before drawing the strips that carry a profile-edited wall's end to the faces of the walls it joins, in_the_way checks that no other wall stands in them. It searched only followed_walls, which leaves out three kinds of wall:

  • a wall drawn as any other solid (tapered, a layered joint, a saved mesh, a base or top cut that is not RE-320's);
  • a wall whose base join names elements;
  • a wall whose ElementId several entities hold.

RE-337 section 6 listed this gap.

Changes

  • src/ifc/export_content/wall_tops.rs:
    • unread_walls lists every IfcWall with a body that followed_walls leaves out. For each it records the plan its drawn body covers (plan_outline) and the heights it stands between (from body_mesh). A wall drawn from a representation map, or whose body gives no mesh, gets no reach, so it counts as standing in every strip (fail closed). A wall with no body is not searched.
    • decide_ends checks those walls after the walls it reads. The strip's rectangle is first drawn in by END_TOLERANCE_FEET on every side, and the wall is in the way where its plan, clipped to that rectangle, has area left and it stands over more than that tolerance of the strip's heights. Such an end is kept with the new reason.
  • docs/export-diagnostics.md, docs/schemas/export-diagnostics.schema.json, docs/support-matrix.json, the src/ifc/mod.rs doc comment: the new reason added to each list.
  • reports/element-framing/RE-337-wall-ends-at-the-base-wall.md: section 6's bullet is updated, and a new section 7 gives the rule and its measured result.
  • changelog.d/fixed/1583-unread-walls-in-strips.md.

Testing

  • Measure 43680522537: full, 95bb555d (every src change) against its merge base f99403c7, with nordic, r2025, samples and holdout. Rows, as registered before it was read:
    1. Every ifc.sha256 identical. Held: 120 of 120, and 102 of 102 diagnostics.json.
    2. The office still draws 4 ends per file. Held: the exports are identical.
    3. No unread_wall_stands_in_the_added_end on any export. Held. No export reaches the refusal, as the issue expected; RE-337 section 7 says so.
  • same-project gates on 95bb555d: pass (check run).
  • c90224f2 after the measured head changes only RE-337 section 7 (the run's figures).
  • rustfmt --check, JSON validity of the schema and support matrix, and tools/release/changelog.py check pass locally. Fast CI is green on 95bb555d, clippy and msrv included.

Audit-honesty checklist

  • Docs state the rule and that no export exercises it (RE-337 section 7, docs/export-diagnostics.md)
  • Changelog fragment under changelog.d/fixed/
  • New limitation in code and docs: a convex hull of a body that is not convex can keep an end that no wall blocks
  • No emojis, private paths or PII

Legal and contribution hygiene

  • Apache-2.0
  • No Autodesk proprietary source, decompiled internals or NDA'd content (CLEANROOM.md)
  • No fixtures added

Breaking changes

None. The change adds one value to exported.wall_end_refusals' reasons.

Closes #1583.

https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut

…does not read stands where it would be drawn (#1583) (RE-337)

The wall-end rule looked for a wall in a strip only among the walls it
reads (followed_walls). A wall drawn as another solid, one whose base join
names elements, or one whose ElementId several entities hold was never
found, and the end was drawn through it with no marker and no count.

decide_ends now also searches those walls, over the plan their drawn body
covers and the heights it stands between. A wall whose body cannot be
bounded here (a representation map's, or one no mesh is made of) is taken
to stand in the strip. Such an end is kept as
unread_wall_stands_in_the_added_end, counted in
exported.wall_end_refusals and logged as wall_end_extension_refused.

Claude-Session: https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 15, 2026 05:44
@DrunkOnJava
DrunkOnJava merged commit ff95460 into main Nov 15, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1583-unread-walls-in-strips branch November 15, 2026 05:55
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.

Wall-end rule: a wall in a strip that the pass does not read is found by nothing, so the end is drawn through it with no count (RE-337 section 6)

1 participant