generate polygons for events