Compute edge points of polygon