Apply transformation to polygons.