I have created a volumetric mesh using gmsh toolkit. It has an ellipsoid inside of a box. I have used two physical groups one is to hold the data for ellipsoid and the other group is to hold the whole 3D volumetric mesh using gmsh. I’m able to export this mesh as a .vtk file (i.e. as an unstructuredGrid) using the gmsh GUI.
Then I loaded it to the ParaView and applied ResampleToImage filter to this volumetric mesh in order to sample its point and cell data on to a uniform grid of points.
Now I want to write this output as a 3D image volume i.e. in .mhd format. I have tried to save it as a .mhd file (File->Save Data->Select Meta Image File Format and then save) using the ParaView, but unfortunately, the output file is always empty and only contains the header. Any possible reason for this ?
How can I save the vtkResampleToImage filter output as .mhd format ?