paraview 如何读取 vtk 文件? [英] How does paraview read a vtk file?

查看:148
本文介绍了paraview 如何读取 vtk 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于 paraview 如何读取 ASCII UNSTRUCTURED_GRID 的一般问题.

I have a general question as to how paraview reads a ASCII UNSTRUCTURED_GRID.

它是否对单元格进行排序然后点?还是点然后单元格?

Does it sort through the cells and then points? or points then cells?

推荐答案

Paraview 是建立在 VTK 库之上的,两者都是开源的,所以如果你是一个程序员,你应该可以通过阅读得到你所有的答案编码.我的假设(但我可能是错的,请检查 paraview 来源 以确保)paraview 用于阅读ASCII 非结构化网格是 vtkUnstructuredGridReader,源代码你可以在这里找到:https://github.com/Kitware/VTK/blob/master/IO/Legacy/vtkUnstructuredGridReader.cxx(这是实现阅读器使用的许多功能的父类https://github.com/Kitware/VTK/blob/master/IO/Legacy/vtkDataReader.cxx).看RequestData方法,变量output"就是输出的非结构化数据.

Paraview is built on the VTK library and both of them are open source, so if you are a programmer, you should be able to get all your answers by reading the code. What I assume (but I can be wrong, check sources of paraview to be sure) paraview uses for reading ASCII unstructured grids is vtkUnstructuredGridReader, source code of which you can find here: https://github.com/Kitware/VTK/blob/master/IO/Legacy/vtkUnstructuredGridReader.cxx (and here is the parent class that implements a lot of the functionality the reader uses https://github.com/Kitware/VTK/blob/master/IO/Legacy/vtkDataReader.cxx). Look at the RequestData method, the variable "output" is the outputted unstructured data.

简单回答您最初的问题,看起来像在单元格之前读取点.

To briefly answer your initial question, it looks like points are read before cells.

这篇关于paraview 如何读取 vtk 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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