Updating mesh.