An attept at outputing the material id to vtk file.