Smoothing or thinning of the pattern