Skip to content

fix(ifc): a room bound by its parameter block names that source, a wall's second refused end is counted, and a layer's name is its IFC4 Name (#1947) - #1948

Merged
DrunkOnJava merged 1 commit into
mainfrom
fix/1947-small
Nov 13, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
fix/1947-small

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Three of #1947's findings, each re-read against the code:

  • Item 12: a room's bind source. A room bound to the Level its own parameter block names (RE-29), because its record's reference list names none, carried LevelBindSource partition_element_record_reference_list: the writer's default for an unset source. rooms.rs now sets m_levelBindSource to the new ROOM_PARAMETER_BLOCK_SOURCE (partition_room_parameter_block), as every other bind sets its own. tests/value_sources_offsets.rs lists the new value.
  • Item 6: refused wall ends. A wall with one end refused with face evidence (refused) and the other without (unmarked) dropped the second. Each end goes into one map or the other, and the unmarked hand-off was guarded by !refused.contains_key. The guard is gone, so both are counted, each in its own counter, as docs/export-diagnostics.md says.
  • Item 11: a layer's name. IFCMATERIALLAYER wrote the name sixth (Category). IFC4's order is Material, LayerThickness, IsVentilated, Name, Description, Category, Priority, and the comment had it wrong too. No producer names a layer yet, so no export moves from this.

Item 10 (Phasing, Insulation and Lining groups) is not changed. A group is written only where its id was seen in a measured model, and no model here holds a named parameter in those groups, so it stays left out and counted until one does.

Testing

The unfiltered Measure with the samples is in this PR's comments. Expected:

  • the rooms' LevelBindSource changes on the models whose rooms bind by their block;
  • exported.wall_end_reads_unmarked changes on walls with both kinds of refusal;
  • nothing else.

Refs #1947.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • A user-visible change has its entry as a fragment under changelog.d/fixed/

…ll's second refused end is counted, and a layer's name is its IFC4 Name (#1947)
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Measure run 43517425160 on 7fe0916a against main 702fd70c (nordic, r2025, samples, every scorer): ifc.sha256 equal on 101 of 101 models and diagnostics.json equal on 101 of 101, so no reference model reaches the changed branch and no export moves. same-project gates passes on 7fe0916a. The change rests on the code read in the description; it is output-neutral on every model we can measure.

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 13, 2026 23:37
@DrunkOnJava
DrunkOnJava merged commit bff95d2 into main Nov 13, 2026
65 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1947-small branch November 13, 2026 23:57
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