added function to convert a planar.Polygon to a list of tuples