Creates polygons from two opposite corners or sides.