linebender / kurbo

A Rust library for manipulating curves
Apache License 2.0
716 stars 69 forks source link

Allow lines in simplify input #343

Closed raphlinus closed 7 months ago

raphlinus commented 7 months ago

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