The Clipper library performs clipping and offsetting for both lines and polygons.
vcpkg install poly2tri