refactored deserializeClipperPolygon