How do I calculate the medial axis for a 2D vector shape?
问题 I have a 2D shape stored as a path element in an SVG. The shapes consist of Bezier curves and line segments. I also have a set of equally space points along the shape that I am generating using arc length parameterization. How can I use either the SVG or these points to determine the medial axis of the shape? I am using Python, but any sort of pseudocode or algorithm advice would be much appreciated. The following is an example of the types of shapes I am dealing with, and the red dots are my