Skip to content

Comments

Use a more precise method to approximate elliptical arcs with quads#936

Merged
nical merged 1 commit intomainfrom
arc-quads
Sep 12, 2025
Merged

Use a more precise method to approximate elliptical arcs with quads#936
nical merged 1 commit intomainfrom
arc-quads

Conversation

@nical
Copy link
Owner

@nical nical commented Sep 12, 2025

Fixes #910

The previous version used a line intersection which suffers a lot from float precision. The new version is based on the math from Maisonobe's paper "Drawing an elliptical arc using polylines, quadratic or cubic Bézier curves".

@nical nical merged commit e920ca2 into main Sep 12, 2025
3 checks passed
@nical nical deleted the arc-quads branch September 12, 2025 13:03
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.

Line intersection loses lot of accuracy

1 participant