function pathStringToPolygon(str, maxLength) {
  const parsed = normalizePath(str);
  return exactPolygon(parsed) || approximatePolygon(parsed, maxLength);
}
Parses a path string and returns a polygon array.
@param {string} str path string
@param {number} maxLength maximum amount of points
@returns {KUTE.exactPolygon} the polygon array we need