C / C ++ Library for VTK IO

I have a C ++ simulation that generates a huge amount of data. Right now I use the MATLAB libraries to save the results as a .mat file, but in the end I will need an open source binary format. I do not want to implement my own binary format, and ASCII is not an option. I heard that VTK provides a .vtk file format for preserving three-dimensional data structures, which is exactly what I need. Is there a good C / C ++ library for reading / writing VTK files?

+3
source share
1 answer

Yes, there is a good library providing .vtk I / O files, and it is called ... wait for it ... VTK! :)

http://www.vtk.org/doc/release/4.2/html/classvtkUnstructuredGridWriter.html

http://www.vtk.org/doc/release/4.2/html/classvtkUnstructuredGridReader.html

( /, ).

+3

Source: https://habr.com/ru/post/1728443/


All Articles