Bevel. If you had selected the edges of the polygon and used bevel the effect you have on the edges would be automatic.