Update the triangle mesh.