Format Polygon2d.