Skip to content

fix(ifc): a wall that is not framed counts every cut step a framed wall would, and a cutter named twice in a wall is counted, not dropped unseen (#1947) - #2021

Merged
DrunkOnJava merged 6 commits into
mainfrom
fix/1947-wall-cut-counts
Nov 14, 2026
Merged

DrunkOnJava merged 6 commits into
mainfrom
fix/1947-wall-cut-counts

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

exported.wall_cut_openings_left_out now counts every cut step that writes no opening. Two drops are fixed. First, in a wall not drawn as an axis-aligned prism, the wall_body_not_an_axis_aligned_prism count used its own test. It counted a door's step only where m_bCutSomething read 0 and never counted a shadow step, though a framed wall counts a door's step in every case but the door's own opening (door_cut_flag_not_read, door_cuts_a_wall_it_is_not_hosted_in_as_its_own) and counts an unresolved shadow step of a cutter it reads. The unframed count now follows the framed loop's choices. Second, a cutter that a wall's record names in two steps was written once and its second step passed over with no count. It is now counted as cutter_named_again_in_wall. Item 17 of #1947 ("unsure").

Motivation

#1947, batch 9's export audit, item 17: "Two dropped counts in the wall cut openings (a cutter named twice, a door step in an unframed wall)" (src/ifc/wall_cut_openings.rs:706, :593). Both are confirmed by reading, and the read found the shadow step as a third. docs/export-diagnostics.md says the object counts "the steps ... and write no opening for it, by reason", so a step that writes nothing and is counted nowhere breaks that.

Changes

  • src/ifc/wall_cut_openings.rs: every entity holding each wall's ElementId is kept, so a door's step in an unframed wall, one whose id two entities hold included, can be told from its own opening and is skipped as a framed wall skips it. A shadow step counts as the framed loop counts it. The repeated cutter is counted under reason::CUTTER_NAMED_AGAIN. The map is separate from repeated, so which walls are framed does not change.
  • docs/export-diagnostics.md, docs/schemas/export-diagnostics.schema.json: the new reason, and what the unframed count holds.
  • changelog.d/fixed/1947-wall-cut-counts.md.

Testing

Measure 43649087626, unfiltered at 12b947c0 against the merge-base 8529bb01, holdout included: ifc.sha256 61 of 61 equal, and diagnostics.json 43 of 43 equal, wall_cut_openings_left_out included. No measured export holds a step the unframed count now adds, or a cutter named twice, so the counts are unchanged everywhere they are measured. Same-project gates: samples run 43650427779 at 12b947c0. The heads after it change only the changelog fragment.

  • tools/check-local.sh: CI runs it
  • End to end: Measure
  • JSON schema: description only

Audit-honesty checklist

  • Docs and schema updated in this PR
  • Changelog fragment
  • No emojis, private paths or jargon

Legal and contribution hygiene

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

Breaking changes

None: one more key can appear in an object of counts.

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 14, 2026 23:06
@DrunkOnJava
DrunkOnJava merged commit f8295cb into main Nov 14, 2026
64 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1947-wall-cut-counts branch November 14, 2026 23:42
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