Why not allow the user to choose the file format (vtk or msh) for the output mesh via command line argument?