@7f73a7d1 Thanks for the input. I guess it's reasonable to expect the user to provide a primitive SVG with only paths. This is what pretty much all CAD software does that I have used. (non-path elements are just ignored). So shapely does not know about Bezier curves? Can it only handle straight lines? If so, then an arbitrary precision needs to be used, right. Would be fine for me if there's Python tooling for that.
@d6d660e8 I'm not sure about all of shapely, but at least offsetting and boolean operations AFAIK only work with polygons made with straight line segments. Shapely IIRC just wraps libgeos here. I'm not aware of any implementation of polygon clipping or offsetting that supports beziers. I know one that supports circular arcs, but converting beziers to those isn't easy either.
@7f73a7d1 Then off I go to find a Python tool to chop am SVG's Bezier curves into line segments 🚶
@d6d660e8 This one might help: https://pypi.org/project/svgpathtools/
@d6d660e8 For your SVG input, I can recommend the usvg utility from the resvg project. It's an SVG normalizer that takes any spec-compliant SVG as an input,and produces an SVG output that only uses a small subset of the spec, making it much easier to handle. That's how svg-flatten works.