基于Python的三维建模可视化系统的研究  被引量:11

Study of the technology of 3D modeling and visualization system based on Python

在线阅读下载全文

作  者:刘振平[1] 贺怀建[1] 李强 朱发华[1] 

机构地区:[1]中国科学院武汉岩土力学研究所,武汉430071 [2]长江水利委员会三峡勘测研究院有限公司,武汉430070

出  处:《岩土力学》2009年第10期3037-3042,共6页Rock and Soil Mechanics

摘  要:将Python语言作为粘合剂,用wxPython做界面,实现了对Python自带一些计算模块的调用,同时也实现了通过Swig对C以及C++模块的调用。结合VTK以及PyOpen GL两个开源图形库,对复合三维可视化建模系统的建立进行了深入地研究,并且以Quad-Edge数据结构为原型,实现了拓扑结构更加紧凑、查询效率更高的一种数据结构模型。然后以此为基础,通过对投影面的设置,实现了空间离散点任意投影面的Delaunay三角剖分,并且充分利用此种数据结构的拓扑特性,实现了一种高效地检索任意约束影响域中的三角形、边、以及顶点的算法,最终实现了三角网任意约束的插入。到目前为止,系统已经初步实现了从DXF、Excel、TXT等文件以及Access和SQL Server数据库中读取相应模型几何数据、信息以及其他数据库相关操作的功能,还实现了空间点的距离反比、Kriging以及3次样条插值、离散点集的Delaunay三角剖分,任意形状约束的插入、两个TIN之间的互相切割等许多三维可视化建模的通用功能。It is studied profoundly that the compound 3D visualization modeling system can be built up with the open-sourced graphic libraries PYOpenGL and VTK. In this process, the computational models written by Python and other models written by C or C++ can be invoked successfully when we use the python language as a kind of adhesive and wxPython as GUI with the help of swig. Moreover, a kind of data structure is implemented using the Quad-edge data structure as prototype, which makes the topology more compact and queries more efficient. Then based-on this data structure, spatial discrete points Delaunay triangulation in any plane is accomplished through the setting of projection plane. Taking full advantage of the topology characteristic, a kind of algorithm which can search interrelated triangles, segments and vertexes efficiently is obtained; and the object of inserting any constraint is reached. Up to now, the function of loading geometry data and other information stored in the format of DXF, Excel or TXT files or access and SQL Server DB is made reality. Also in the system, many general 3D modeling functions as interpolations of inverse distance, Kriging and cubic spline, Delaunay triangulation, constraints insertion, intersections with two TIN and so on are accomplished.

关 键 词:三维可视化 PYTHON语言 约束DELAUNAY三角化 Swig 

分 类 号:TP391[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象