update trail mesh.