I have a VTK file (unstructured grid) with points
and cells
.
I can import the file and read it into using the meshio python package.
If I
Let me also draw your attention to
vtkplotter
which has a different approach, also built on top of vtk
:
from vtkplotter import *
# read the data
ugrid = loadUnStructuredGrid("mesh_mcve.vtk")
# create the outline of the data as polygonal mesh and show it
Mesh(ugrid).c('viridis').alpha(1.0).show()
Plenty of examples can be found here along with API documentation.