After careful online research, there seems to be too much confusion about how to transform a 3D Mesh object from VTK format into an OBJ wavefront format using Python. For this reason, in this repository I present a simple solution based on the well-known pyvista package.
In detail, I took the model of a reconstructed liver kindly provided by Suwelack et al. and I converted their VTK files in OBJ wavefront meshes.
Here's what you get:
Basic usage:
python3 vtk_to_obj_converter.py '/your_dir/toconvert/' -o '/your_dir/converted/'