VTK IO的C / C ++库 [英] C/C++ library for VTK IO

查看:276
本文介绍了VTK IO的C / C ++库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C ++中有一个模拟生成大量的数据。现在我使用MATLAB库将结果保存为.mat文件,但最终我需要一个开源的二进制格式。我不想实现我自己的二进制格式,ASCII不是一个选项。我听说VTK提供了.vtk二进制文件格式来保存3d数据结构,这正是我需要的。是否有一个好的C / C ++库用于读取/写入VTK文件?

解决方案

文件I / O,它被称为...等待... VTK! :)



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



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

(还有许多其他读者/写者适合您的数据类型)。


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?

解决方案

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).

这篇关于VTK IO的C / C ++库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆