Skip to content

fix(ifc): a curved wall's chords stay within 0.0005 ft of its arc whatever its radius (#1947) - #1949

Merged
DrunkOnJava merged 1 commit into
mainfrom
fix/1947-arc-chords
Nov 13, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
fix/1947-arc-chords

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

wall_arc_outline capped each arc at 512 chords, so on a large radius the chords strayed further inside the arc than WALL_ARC_TOLERANCE_FEET (0.0005 ft), which its doc and RE-75 promise: 0.0047 ft at a 1,000 ft radius over a half turn. The cap is now 8,192 chords (WALL_ARC_MAX_CHORDS), which holds the tolerance to a radius of about 27,000 ft. An arc that needs more is not drawn as an arc (None, as for a degenerate arc), and the wall keeps the body it would otherwise have; BodySource follows the outline, so it is not labelled partition_wall_arc.

Testing

The unfiltered Measure with the samples is in this PR's comments. It shows whether any measured curved wall needed more than 512 chords, and so moves.

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/

…of its arc: the cap is 8,192 chords, and an arc that needs more is not drawn as one (#1947)
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Measure run 43517631246 on 144abe9b 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 144abe9b. 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 2b9dd6d into main Nov 13, 2026
65 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1947-arc-chords branch November 13, 2026 23:55
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