OpenPathToFlatPolygon

function OpenPathToFlatPolygon(const path: TArrayOfPointD): TArrayOfPointD;

This function converts a path into a flat polygon in preparation for widening (offsetting).