How to read a volumetric mesh in python?

Hello everyone!

I segmented some DICOM files and turned the segmentation into a volumetric mesh. I want to read and plot this file correctly in python. Can you tell me how to do this the best way without losing information?


You can use the VTK Python bindings to access the data in the mesh.

Thank you Steve Piper!!

I’m having trouble to access the segment dimensions in the vtk file. Do you know how to do it?