›› 2009, Vol. 30 ›› Issue (10): 3037-3042.

• Geotechnical Engineering • Previous Articles     Next Articles

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

LIU Zhen-ping1, HE Huai-jian1, LI Qiang2, ZHU Fa-hua1   

  1. 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
  • Received:2009-04-01 Online:2009-10-10 Published:2009-12-23

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.

Key words: 3D visualization, Python language, constrained Delaunay triangulation, Swig

CLC Number: 

  • TP 391
[1] ZHU Fa-hua , HE Huai-jian , LIU Qiang. Engineering geology information management based on GIS and 3D visualization [J]. , 2009, 30(S2): 404-407.
[2] LIU Zhen-ping, HE Huai-jian, ZHU Fa-hua. Study of technology of fast 3D modeling and visualization based on borehole data [J]. , 2009, 30(S1): 260-266.
[3] ZHU Fa-hua, HE Huai-jian. 3D stratum modeling based on ground penetrating radar and borehole data [J]. , 2009, 30(S1): 267-270.
[4] WANG Ming-hua, BAI Yun. Study on integration of three-dimensional modeling and numerical simulation for stratified rock mass [J]. , 2005, 26(7): 1123-1126.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
[1] YAO Yang-ping, HOU Wei. Basic mechanical behavior of soils and their elastoplastic modeling[J]. , 2009, 30(10): 2881 -2902 .
[2] XU Jin-ming, QIANG Pei, ZHANG Peng-fei. Texture analysis of photographs of silty clay[J]. , 2009, 30(10): 2903 -2907 .
[3] XIANG Tian-bing, FENG Xia-ting, CHEN Bing-rui, JIANG Quan, ZHANG Chuan-qing. Rock failure mechanism and true triaxial experimental study of specimens with single structural plane under three-dimensional stress[J]. , 2009, 30(10): 2908 -2916 .
[4] SHI Yu-ling, MEN Yu-ming, PENG Jian-bing, HUANG Qiang-bing, LIU Hong-jia. Damage test study of different types structures of bridge decks by ground-fissure[J]. , 2009, 30(10): 2917 -2922 .
[5] XIA Dong-zhou, HE Yi-bin, LIU Jian-hua. Study of damping property and seismic action effect for soil-structure dynamic interaction system[J]. , 2009, 30(10): 2923 -2928 .
[6] XU Su-chao, FENG Xia-ting, CHEN Bing-rui. Experimental study of skarn under uniaxial cyclic loading and unloading test and acoustic emission characteristics[J]. , 2009, 30(10): 2929 -2934 .
[7] ZHANG Li-ting, QI Qing-lan, WEI Jing HUO Qian, ZHOU Guo-bin. Variation of void ratio in course of consolidation of warping clay[J]. , 2009, 30(10): 2935 -2939 .
[8] YI Jun, JIANG Yong-dong, XUAN Xue-fu, LUO Yun, ZHANG Yu. A liquid-solid dynamic coupling modelof ultrasound enhanced coalbed gas desorption and flow[J]. , 2009, 30(10): 2945 -2949 .
[9] HUANG Run-qiu, XU De-min. Volume change method for testing rock or rock mass permeability[J]. , 2009, 30(10): 2961 -2964 .
[10] SUN Yong. Research on calculation method of double-row anti-sliding structure under sliding surface[J]. , 2009, 30(10): 2971 -2977 .