Repository navigation
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
Conversation
DrunkOnJava
marked this pull request as ready for review
November 14, 2026 23:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
exported.wall_cut_openings_left_outnow counts every cut step that writes no opening. Two drops are fixed. First, in a wall not drawn as an axis-aligned prism, thewall_body_not_an_axis_aligned_prismcount used its own test. It counted a door's step only wherem_bCutSomethingread 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 ascutter_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.mdsays 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 underreason::CUTTER_NAMED_AGAIN. The map is separate fromrepeated, 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
12b947c0against the merge-base8529bb01, holdout included:ifc.sha25661 of 61 equal, anddiagnostics.json43 of 43 equal,wall_cut_openings_left_outincluded. 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 at12b947c0. The heads after it change only the changelog fragment.tools/check-local.sh: CI runs itAudit-honesty checklist
Legal and contribution hygiene
Breaking changes
None: one more key can appear in an object of counts.