首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于Python的三维建模可视化系统的研究
引用本文:刘振平,贺怀建,李强,朱发华.基于Python的三维建模可视化系统的研究[J].岩土力学,2009,30(10):3037-3042.
作者姓名:刘振平  贺怀建  李强  朱发华
作者单位:1.中国科学院 武汉岩土力学研究所,武汉 430071;2.长江水利委员会 三峡勘测研究院有限公司,武汉 430070
摘    要:将Python语言作为粘合剂,用wxPython做界面,实现了对Python自带一些计算模块的调用,同时也实现了通过Swig对C以及C++模块的调用。结合VTK以及PyOpenGL两个开源图形库,对复合三维可视化建模系统的建立进行了深入地研究,并且以Quad-Edge数据结构为原型,实现了拓扑结构更加紧凑、查询效率更高的一种数据结构模型。然后以此为基础,通过对投影面的设置,实现了空间离散点任意投影面的Delaunay三角剖分,并且充分利用此种数据结构的拓扑特性,实现了一种高效地检索任意约束影响域中的三角形、边、以及顶点的算法,最终实现了三角网任意约束的插入。到目前为止,系统已经初步实现了从DXF、Excel、TXT等文件以及Access和SQL Server数据库中读取相应模型几何数据、信息以及其他数据库相关操作的功能,还实现了空间点的距离反比、Kriging以及3次样条插值、离散点集的Delaunay三角剖分,任意形状约束的插入、两个TIN之间的互相切割等许多三维可视化建模的通用功能。

关 键 词:三维可视化  python语言  约束Delaunay三角化  Swig  
收稿时间:2009-04-01

Study of the technology of 3D modeling and visualization system based on Python
LIU Zhen-ping,HE Huai-jian,LI Qiang,ZHU Fa-hua.Study of the technology of 3D modeling and visualization system based on Python[J].Rock and Soil Mechanics,2009,30(10):3037-3042.
Authors:LIU Zhen-ping  HE Huai-jian  LI Qiang  ZHU Fa-hua
Institution:1. Institute of Rock and Soil Mechanics, Chinese Academy of Sciences, Wuhan 430071, China; 2. Three Gorges Geotechnical Consultants Co., Ltd., Changjiang Water Resources Commission, Wuhan 430070, China
Abstract: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.
Keywords:Swig
本文献已被 万方数据 等数据库收录!
点击此处可从《岩土力学》浏览原始摘要信息
点击此处可从《岩土力学》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号