Smoothing of segment transitions