Skip to content

feat(elements): decide the L joints the join lists leave open from the joined-wall lists (#238) (RE-127) - #517

Merged
DrunkOnJava merged 7 commits into
mainfrom
re/re127-joined-wall-lists
Sep 28, 2026
Merged

DrunkOnJava merged 7 commits into
mainfrom
re/re127-joined-wall-lists

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Closes #238.

Finding

Beside RE-70's join lists, a wall's data holds lists opening 01 00 00 00 with the join lists' tag + 2. Each names every wall the wall is joined to, as u64 ElementId · u32 n · n × u32. Naming is symmetric, so presence says nothing about which wall runs through, but the words do. At Core Interior's 244 L-joint ends that RE-70 decides, a wall's entry for its partner is a run of consecutive values at 0 of 122 through ends and at 111 of 122 stopped ones.

#238's remaining 9 walls and their partners are one corner of the building's core repeated on eight storeys, plus 80743/80747. Their join lists leave the pair undecided. At all 18 ends, one entry is consecutive and the other is not; Revit stops the consecutive wall at the other's near face and ends the other at the corner.

Change

butt_joins decides a perpendicular L joint the join lists leave open from the two joined-wall entries. The entries come from the new partition_compound_structure::scan_wall_joined_entries.

Measured on GitHub's runners (Measure workflow)

Core Interior vs Revit's export main this PR
walls with both ends within 0.001 ft 351 of 360 360 of 360
wall ends within 0.001 ft 711 of 720 720 of 720
  • No other scorer changes. The Einhoven and RE1 IFCs are identical to main's (run 36493826658).
  • Snowdon Towers and the Revit 2026 house carry the same lists but can't be measured on the runners (no redistribution licence); the report says so.

Also

  • The Measure workflow now regenerates the Core witness observations, so this PR commits them from a runner.
  • Probe: examples/probe_re127_joined_wall_lists.rs. Scorer: tools/re/joined_wall_lists_vs_ifc.py. Report: reports/element-framing/RE-127-joined-wall-lists.md.

Clean-room

Derived only from public byte observations of the named MIT files and comparison with Revit's own IFC exports; no Autodesk/ODA SDK source, disassembly, leaked or NDA material.


Note

Medium Risk
Changes wall trim geometry logic in butt_joins with byte-layout parsing of join metadata; scope is fail-closed (ambiguous pairs still decline) but wrong consecutive detection could mis-trim joins on other models.

Overview
RE-127 closes the last nine over-trimmed wall ends at true L corners on Core Interior by reading joined-wall lists in wall element data (alongside RE-70 join lists) and applying a tie-break when both walls name each other in join lists.

The parser adds scan_wall_joined_entries / wall_joined_entries for variable-length ElementId · n · n×u32 frames (tag = join-list tag + 2). butt_joins takes that map and, for perpendicular L joints join lists leave undecided, uses joined_stop: if exactly one side’s entry for the partner is a run of consecutive u32s, that wall stops at the partner’s near face (reach −½ thickness) and the other ends at the joint (reach 0).

Core Interior IFC vs Revit goes from 351/360 to 360/360 world-exact wall bodies and 711/720 to 720/720 ends; other reference models’ IFC output is unchanged per the report.

Also ships probe probe_re127_joined_wall_lists, scorer joined_wall_lists_vs_ifc.py, RE-127 report, doc/changelog/README updates, and Measure CI regenerating Core Interior witness observation JSON.

Reviewed by Cursor Bugbot for commit 8b6d870. Configure here.

@cursor

cursor Bot commented Sep 28, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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_a6debf2c-2cce-4328-b3fd-b79fdde9d034)

@DrunkOnJava
DrunkOnJava merged commit 53c480b into main Sep 28, 2026
23 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/re127-joined-wall-lists branch September 28, 2026 22:54
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.

RE-26 follow-up: 31 over-trimmed wall ends on 16 walls — join decision has no identified carrier

1 participant