简体   繁体   English

如何使用python脚本生成等值面并将场景导出到Paraview中的* .vrml文件中?

[英]How to use python script to generate iso-surface and export scene to *.vrml file in Paraview?

The work flow is like this, I import the data in Paraview. 工作流程是这样的,我将数据导入Paraview中。 Then get isosurface contour using one value then export scene to *.vrml format, then use another value to get the isosurface then export it so on so forth. 然后使用一个值获取等值面轮廓,然后将场景导出为* .vrml格式,然后使用另一个值获取等值面,然后将其导出,依此类推。 I'm wondering how to write python script to reduce the work load since there are many values that I need to export. 我想知道如何编写python脚本以减少工作量,因为我需要导出许多值。

The easiest way to find the python equivalent for the gui commands is to use the trace option from the Tools menu. 查找gui命令的python等效项的最简单方法是使用“工具”菜单中的trace选项。 You can also save paraview state as a python script (look in the option "save as .py" instead of pvsm). 您还可以将paraview状态另存为python脚本(在选项“另存为.py”中查找,而不是pvsm)。

I have not experience with vrml format, but you can have a look at some snippets in http://www.paraview.org/pipermail/paraview/2013-January/027270.html 我没有使用vrml格式的经验,但是您可以在http://www.paraview.org/pipermail/paraview/2013-January/027270.html中查看一些片段

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM