计算机与现代化 ›› 2021, Vol. 0 ›› Issue (09): 57-62.

• 算法设计与分析 • 上一篇    下一篇

基于三角剖分算法的BIM模型高精度显示方法

  

  1. (1.西南交通大学信息科学与技术学院,四川成都611730;2.广州地铁设计研究院股份有限公司,广东广州510010)
  • 出版日期:2021-09-14 发布日期:2021-09-14
  • 作者简介:王坭(1996—),男,四川成都人,硕士研究生,研究方向:云计算与互联网技术,E-mail: 915101686@qq.com; 王淑营(1974—),女,研究员,博士,研究方向:云服务平台架构,自适应演化技术,E-mail: w_shuying@126.com; 史海欧(1965—),男,教授级高级工程师,硕士,研究方向:城市轨道交通工程管理,结构及岩土工程设计,E-mail: shihaiou@dtsjy.com; 袁泉(1984—),男,博士,研究方向:城市轨道交通岩土工程设计,结构工程及信息化工程设计,E-mail:yuanquan@dtsjy.com。
  • 基金资助:
    国家重点研发计划项目(2017YFB1201102)

High Precision Display Method of BIM Model Based on Triangulation Algorithm

  1. (1. School of Information Science and Technology, Southwest Jiaotong University, Chengdu 611730, China;

    2. Guangzhou Metro Design and Research Institute Co., Ltd., Guangzhou 510010, China)
  • Online:2021-09-14 Published:2021-09-14

摘要: BIM模型在Web前端的渲染问题是BIM技术在实际应用中的重要问题,利用三角面片来加快模型前端渲染效率(模型轻量化)是该问题的解决方案。根据Revit二次开发技术中BIM模型的三角面片网格平均质量系数较低的问题,针对BIM模型轻量化和基于Web端共享的应用需求,提出结合Revit二次开发和Delaunary剖分算法的改进算法。通过在Revit二次开发得到的BIM模型原始点上增加点,使得原始点与增加的点按照B-W算法符合Delaunay准则,生成更为精细的三角面片,同时避免了域外三角形的产生,改进了算法实际应用效果。实验结果表明改进算法得到的三角面片的网格平均质量系数和网格关联质量系数相较于原始算法均有提高。最后设计利用WebGL将BIM模型按照优化算法生成的三角面片的方式进行渲染,实现BIM模型在Web端的渲染,验证该方法的有效性。

关键词: BIM模型, 模型轻量化, 网格质量, 三角剖分算法, WebGL渲染

Abstract: The rendering problem of BIM model in the web front end is an important problem in the practical application of BIM Technology. The solution to this problem is to use triangular patches to accelerate the rendering efficiency of the model front end (model lightweight). According to the problem that the average quality coefficient of triangle mesh of BIM model is low in the secondary development technology of Revit, aiming at the application requirements of BIM model lightweight and web-based sharing, an improved algorithm combining the secondary development of Revit and Delaunay subdivision algorithm is proposed. By adding points to the original points of BIM model obtained from the secondary development of Revit, the original points and the added points conform to the Delaunay criterion according to the B-W algorithm, and more precise triangular patches are generated. At the same time, the generation of extraterritorial triangles is avoided, and the practical application effect of the algorithm is improved. The experimental results show that the average mesh quality coefficient and mesh association quality coefficient of the improved algorithm are improved compared with the original algorithm. Finally, the BIM model is rendered by WebGL according to the triangle patch generated by the optimization algorithm, and the rendering of BIM model on the web side is realized, which verifies the effectiveness of the method.

Key words: BIM model, model lightweight, mesh quality, triangulation algorithm, WebGL render