Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZigZag based on bezier length #2825

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mbasaglia
Copy link
Collaborator

Updates ZigZag to split bezier into uniform length rather than splitting the bezier parameter.

To calculate the lengths I approximate the bezier segment with 20 linear segments, based on some visual tests, at around 20 segments the results are very accurate (at most 1 pixel off on large/wild beziers).
This value can be lowered for a performance / accuracy tradeoff.

I also tweaked a bit the position of the endpoints as it was slightly off.

@mbasaglia
Copy link
Collaborator Author

Also added support for smooth points

@kudanai
Copy link
Collaborator

kudanai commented Nov 28, 2022

Issue #1156 is related to this

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.

None yet

2 participants