Skip to content

fix(ifc): a face-hosted cut's opening keeps its place among its host's openings when an earlier one is not written (#1947) - #1950

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

DrunkOnJava merged 1 commit into
mainfrom
fix/1947-cut-numbers

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

attach_face_hosted_cuts (src/ifc/mod.rs) numbered each opening by its place among the openings it wrote for a host. Its own comment says the number is the place among Revit's: the host's cutting instances, the highest ElementId first (Basic Roof:YP-1:2991742:1 is hatch 2896992's, :4 hatch 2053330's). A cut declined before another (no transform, not an upright prism, a host not drawn as an extrusion) shifted the name, and the GlobalId hashed from it, of every later opening on that host. The count is now taken per host tag at the top of the loop, before any decline.

Testing

The unfiltered Measure with the samples is in this PR's comments. Where every cut of a host is written, nothing moves; it shows which exports had a declined cut ahead of a written one.

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/

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Measure run 43517772438 on d23843dc 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 d23843dc. 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 99f0e1c into main Nov 13, 2026
65 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1947-cut-numbers branch November 13, 2026 23:58
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