Skip to content

fix(ifc): a roof whose sketch is several loops is not sloped on its first loop alone (#1947) - #2022

Merged
DrunkOnJava merged 2 commits into
mainfrom
fix/1947-roof-pieces
Nov 14, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
fix/1947-roof-pieces

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

A roof whose sketch is several loops (profile.pieces not empty) is no longer sloped. Its first loop was drawn by roof_slope_solid or roof_planes_solid from 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_slope in export_content.rs passes only profile.outer_xy and inner_xy, the first loop, to the slope solids, while piece_bodies writes every further loop as an Extrusion of the box height.

Changes

  • src/ifc/export_content.rs: roof_slope filters to profile.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 against 8529bb01, holdout included) moved nothing: ifc.sha256 61 of 61 equal, diagnostics.json 43 of 43. No measured model holds a sloped roof in pieces. This head's own Measure, 43650220002 at ee07326f with samples, nordic, r2025 and holdout against 8529bb01: ifc.sha256 120 of 120 equal, diagnostics.json 102 of 102, no scorer output differs, and same-project gates pass (15 samples held to their earlier saves). The head after it changes only the fragment's count.

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

Audit-honesty checklist

  • Changelog fragment, in the "no measured model holds one" form
  • No emojis, private paths or jargon

Legal and contribution hygiene

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

Breaking changes

None.

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 14, 2026 23:27
@DrunkOnJava
DrunkOnJava merged commit 7d13369 into main Nov 14, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1947-roof-pieces branch November 14, 2026 23:38
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