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

Allow lines in simplify input #343

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Allow lines in simplify input #343

merged 1 commit into from
Mar 13, 2024

Conversation

raphlinus
Copy link
Contributor

This patch allows lines in paths to be simplified, which previously caused a panic due to an unhandled case. It also passes them through unmodified if the angle exceeds the threshold.

The docstring also adds a little discussion about expectations with noisy input.

Fixes #342

This patch allows lines in paths to be simplified, which previously caused a panic due to an unhandled case. It also passes them through unmodified if the angle exceeds the threshold.

The docstring also adds a little discussion about expectations with noisy input.

Fixes #342
Copy link
Collaborator

@platlas platlas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I also checked the one segment scenario.

@raphlinus raphlinus merged commit 46820b0 into main Mar 13, 2024
14 checks passed
@raphlinus raphlinus deleted the simplify_lines branch March 13, 2024 23:54
@waywardmonkeys waywardmonkeys added this to the August, 2024 Release milestone Aug 6, 2024
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.

simplify_bezpath panics on LineTo
3 participants