Transforming polygons