Straight line flow implemented for polygons.