Use edge iterator in mesh smoothing, fixing bug #1143977