working mesh for simple polygons