Repository navigation
fix(research): a ruled component's arc and ellipse profiles are stepped by the length of their parameter range (RE-385) - #1642
Merged
Conversation
…ed by the length of their parameter range, whichever way it runs (RE-385)
DrunkOnJava
marked this pull request as ready for review
November 10, 2026 18:52
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
face_gridinnative_parametric_mesh.rssteps each profile of a ruled component by(range end - range start) / angular step, then takes the larger of the profiles' steps. For an arc or an ellipse whose parameter range runs the other way (end below start), that quotient is negative,n.max(..)ignores it, and the grid is coarser than the profile's curvature needs, with no error. This takes the length of the range (.abs()), as the revolution reader of #1632 does for arcs.Motivation
rvtDevelop's read of #1620 (RE-385) named it as the one thing to harden: nothing in the measured models shows a reversed range, so nothing changes there; the grid bound the reader states ("the angular step of its radius across an arc") would otherwise not hold for one.
Changes
src/research/native_parametric_mesh.rs: the arc and ellipse step counts of a ruled component's profiles take(r[1] - r[0]).abs().Testing
No unit tests (banned); the change is measured end to end.
main(the run for this head): every export byte-identical and no scorer moves is the expectation, since no measured model holds a reversed range; the run's numbers follow in a comment.Audit-honesty checklist
Breaking changes
None.
Related issues
Follows #1620 (RE-385).