Fixed mathematical bug in mesher.