APP下载

基于DXF文件的水利工程地形模型构建方法研究

2020-10-12刘尚蔚周钰航魏群

人民黄河 2020年4期

刘尚蔚 周钰航 魏群

摘 要:数字地形模型(DTM)是水利水电工程三维数字模型的重要组成部分,应用范围非常广泛。一般的建模软件流程繁琐,严重影响建模效率且存在地形表面失真,不能准确地表现真实地形信息。本文通过分析DXF文件的数据结构,在Python环境下利用Python语言编写程序读取和直接编写DXF文件,利用Delaunay算法生成三角网描述地形曲面拓扑关系,并将拓扑信息直接写入DXF文件中,编写的DXF文件可在不同软件中通过拉伸生成实体,既实现了三维数字地形模型的快速建模,又可满足不同软件之间的数据交换。此方法在某水利工程三维数字地形模型中成功应用,对基于DXF文件的直接建模方法研究具有借鉴意义。

关键词:Python;DXF;不规则三角网;三维地形实体模型

中图分类号:TV39   文献标志码:A

doi:10.3969/j.issn.1000-1379.2020.04.034

Abstract:Digital Terrain Model (DTM) is an important part of the 3D digital model of water conservancy and hydropower engineering and its application range is very wide. The general modeling software process is cumbersome, seriously affecting the modeling efficiency and the terrain surface distortion cant strictly represent the real terrain information. By analyzing the data structure of DXF files, this paper used Python language to write programs and directly write DXF files in Python 3.7 environment. The Delaunay algorithm was used to generate triangulation to describe the terrain surface topological relationship and the topology information was directly written into the DXF file. The DXF file could be generated by stretching in different software, which could not only realize the rapid modeling of the 3D digital terrain model but also the data exchange between different software. This method had been successfully applied in the 3D digital terrain model of a water conservancy project and it could be used as a reference for the direct modeling method based on DXF file.

Key words: Python; DXF; TIN; 3D terrain solid model

随着计算机技术的飞速发展,BIM技术已经被广泛应用于土木工程、水利水电工程等多个领域,BIM技术的实质是结构工程的数字图形与相关信息融合集成及动态关联[1-2]。水工BIM技术应用中,地形模型作为描述工程施工总布置的基础,不仅为所有水工建筑物及施工提供活动场所,方便设计方进行合理规划设计,而且通过建立不同时期的曲面,如原始地形曲面、设计开挖土方量的体积曲面,可以快速精确地计算出开挖或者回填的土方量。可见快速高效地建立高质量的地形模型在水工BIM技术应用中具有重要意义。

目前AutoCAD是全球用户最多的图形设计软件之一,也是影响最大的图形设计软件[3]。……

登录APP查看全文