LLNL / MemSurfer

MemSurfer is a software tool to compute bilayer membrane surfaces.
GNU General Public License v3.0
24 stars 9 forks source link

Format of output files #4

Open LHRK opened 4 years ago

LHRK commented 4 years ago

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

bhatiaharsh commented 4 years ago

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.