Skip to content

Use Wang's formula to flatten cubic bézier curves#933

Merged
nical merged 1 commit intomainfrom
flatten-wang
Sep 12, 2025
Merged

Use Wang's formula to flatten cubic bézier curves#933
nical merged 1 commit intomainfrom
flatten-wang

Conversation

@nical
Copy link
Owner

@nical nical commented Sep 12, 2025

The current implementation is a sub-optimal version of Raph Levien's algorithm. A more optimal version would produce a higher quality flattening but in its current state it is generally worse than Wang's method and isn't correctly generating the curve parameters in the with_t variant.

The current implementation is a sub-optimal version of Raph Levien's algorithm. A more optimal version would produce a higher quality flattening but in its current state it is worse than Wang's method and isn't correctly generating the curve parameters in the with_t variant.
@nical nical merged commit c7729b6 into main Sep 12, 2025
3 checks passed
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