Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format of output files #4

Open
LHRK opened this issue Nov 13, 2019 · 1 comment
Open

Format of output files #4

LHRK opened this issue Nov 13, 2019 · 1 comment
Labels
feature New feature or request

Comments

@LHRK
Copy link

LHRK commented Nov 13, 2019

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

@bhatiaharsh
Copy link
Contributor

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 bhatiaharsh added the feature New feature or request label Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants