MemSurfer icon indicating copy to clipboard operation
MemSurfer copied to clipboard

Format of output files

Open LHRK opened this issue 6 years ago • 1 comments

Is it possible to save the output data in either VTK or numpy array format instead of the VTP format?

LHRK avatar Nov 13 '19 09:11 LHRK

Hi. VTP is just the VTK format for polydata. You should be read VTP using any software/code that reads VTK.

Numpy would be a really useful addition. I will keep this issue open until I find time to implement this. If you need sth urgent, look at the following functions to see how the code converts the numpy data into vtk before writing. A similar function to write numpy should be easy to come by..

Memsurfer/memsurfer/trimesh.py:write_vtp() and Memsurfer/memsurfer/utils.py: write2vtkpolydata(). What you need to do is look at the dictionary properties, and write what you need (or all) to numpy files.

bhatiaharsh avatar Nov 14 '19 23:11 bhatiaharsh