Oddbean new post about | logout
 @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 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.