Feature request: VTI export with Python API
Hello,
Gmsh comes with a VTK exporter (thanks!). It would be nice to have VTI support as well. VTK is now legacy. At the moment, the alternative is to export as VTK and then convert to VTI, but that creates overhead in processing. Thanks!
Some implementations and comments
- https://examples.itk.org/src/bridge/vtkglue/convertanitkimagetovtkimagedata/documentation
- https://www.paraview.org/Wiki/Convert_a_File_from_LegacyVTK_to_VTI
- https://vtk.org/doc/nightly/html/classvtkXMLReader.html
- https://vtk.org/doc/nightly/html/classvtkXMLImageDataWriter.html
-
import vtk; vtk.vtkXMLImageDataWriter; vtk.vtkXMLReader
(from https://stackoverflow.com/a/55260799)