jbuckmccready / cavalier_contours

2D polyline/shape library for offsetting, combining, etc.
Apache License 2.0
151 stars 13 forks source link

Fixed PlineView::from_slice_points to handle wrapping on same segment #28

Closed jbuckmccready closed 1 year ago

jbuckmccready commented 1 year ago

In the case where slice points given were on the same segment but ordered such that the slice formed wrapped around a closed polyline an incorrect result was returned.

Added test cases to cover the this scenario.