C/C++ library for VTK IO [closed]

烂漫一生 提交于 2019-12-22 10:27:01

问题


I have a simulation in C++ which generates huge amount of data. Right now I am using MATLAB libraries to save the results as a .mat file, but eventually I will be needing an open source binary format. I don't want to implement my own binary format and ASCII is not an option. I heard that VTK provides .vtk binary file format for saving 3d data structures, which is exactly what I need. Is there a good C/C++ library for reading/writing VTK files?


回答1:


Yes, there is a good library providing .vtk files I/O, 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

(There are many other readers/writers to suit your data type).



来源:https://stackoverflow.com/questions/2063606/c-c-library-for-vtk-io

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!