Repository navigation
fix(ifc): a roof whose sketch is several loops is not sloped on its first loop alone (#1947) - #2022
Merged
Merged
Conversation
…irst loop alone (#1947)
DrunkOnJava
marked this pull request as ready for review
November 14, 2026 23:27
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
A roof whose sketch is several loops (
profile.piecesnot empty) is no longer sloped. Its first loop was drawn byroof_slope_solidorroof_planes_solidfrom the roof's slope edges, and each further loop was written by the #331 piece path as a flat prism the height of the record box, so one roof came out drawn two ways. Nothing says which loops the slope edges belong to. The arrow path (RE-307) and the sloped-floor path (#1384) already refuse a plan in pieces, and the plain and two-cut roof paths now do the same. Item 14 of #1947 ("unsure").Motivation
#1947, batch 9's export audit, item 14: "A multi-loop sloped roof slopes its first loop only" (
src/research/partition_schema_mvp/roofs.rs:926). Confirmed by reading:roof_slopeinexport_content.rspasses onlyprofile.outer_xyandinner_xy, the first loop, to the slope solids, whilepiece_bodieswrites every further loop as anExtrusionof the box height.Changes
src/ifc/export_content.rs:roof_slopefilters toprofile.pieces.is_empty(), and the arrow branch's own copy of that test goes, since it is now redundant. The rest is reindentation.changelog.d/fixed/1947-roof-pieces.md.Testing
A variant with the same rule (
3c40fd3f, Measure 43649253933, unfiltered against8529bb01, holdout included) moved nothing:ifc.sha25661 of 61 equal,diagnostics.json43 of 43. No measured model holds a sloped roof in pieces. This head's own Measure, 43650220002 atee07326fwith samples, nordic, r2025 and holdout against8529bb01:ifc.sha256120 of 120 equal,diagnostics.json102 of 102, no scorer output differs, andsame-project gatespass (15 samples held to their earlier saves). The head after it changes only the fragment's count.tools/check-local.sh: CI runs itAudit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.