AngusJohnson / Clipper2

Polygon Clipping and Offsetting - C++, C# and Delphi
Boost Software License 1.0
1.52k stars 273 forks source link

One-sided offset with EndType::ButtLeft #905

Closed LarsSkiba closed 3 weeks ago

LarsSkiba commented 4 weeks ago

Implement a one-sided offset by extending the EndType with ButtLeft.

LarsSkiba commented 4 weeks ago

Hi @AngusJohnson,

The additional logic in OffsetPoint solves this problem: image

To my knowledge this is not solvable by a FillRule so i went with calculation the intersection point.

LarsSkiba commented 3 weeks ago

I discovered further major challenges, closing for now.