Skip to content

fix(research): a ruled component's arc and ellipse profiles are stepped by the length of their parameter range (RE-385) - #1642

Merged
DrunkOnJava merged 1 commit into
mainfrom
fix/ruled-surface-steps-abs
Nov 10, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
fix/ruled-surface-steps-abs

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

face_grid in native_parametric_mesh.rs steps 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.

  • Measure unfiltered against 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.
  • rustfmt passes on the file.

Audit-honesty checklist

  • No user-visible change that any measured model shows: no changelog fragment. A model whose arc runs the other way would draw a finer ruled surface than before; none is known.

Breaking changes

None.

Related issues

Follows #1620 (RE-385).

…ed by the length of their parameter range, whichever way it runs (RE-385)
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 10, 2026 18:52
@DrunkOnJava
DrunkOnJava merged commit f273f52 into main Nov 10, 2026
65 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/ruled-surface-steps-abs branch November 10, 2026 19:02
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