欢迎访问《图学学报》

图学学报 ›› 2026, Vol. 47 ›› Issue (4): 801-811.DOI: 10.11996/JG.j.2095-302X.2026040801

• 数字化设计与制造 • 上一篇    下一篇

基于计算着色器的并行约束Delaunay三角剖分算法

陈国军(), 孔赟艺, 陈家乐, 宋双双   

  1. 中国石油大学(华东)青岛软件学院、计算机科学与技术学院山东 青岛 266580
  • 收稿日期:2026-01-05 接受日期:2026-04-22 出版日期:2026-08-31 发布日期:2026-08-31
  • 通讯作者:陈国军,E-mail:chengj@upc.edu.cn

Parallel constrained Delaunay triangulation algorithm based on compute shaders

CHEN Guojun(), KONG Yunyi, CHEN Jiale, SONG Shuangshuang   

  1. Qingdao Institute of Software, College of Computer Science and Technology, China University of Petroleum (East China), Qingdao Shandong 266580, China
  • Received:2026-01-05 Accepted:2026-04-22 Published:2026-08-31 Online:2026-08-31
  • Contact: CHEN Guojun,E-mail:chengj@upc.edu.cn

摘要:

约束Delaunay三角剖分(CDT)在地理信息系统、三维建模及工程仿真等领域具有重要应用价值,但在大规模数据场景下,其构建过程仍面临并行效率不足、拓扑更新开销高以及平台依赖性强等问题。为此,提出了一种基于计算着色器的并行约束Delaunay三角剖分算法。以计算着色器执行模型为核心,利用GPU的细粒度线程并行性与高吞吐存储架构,实现CDT构网流程的全流程并行化。在算法实现上,首先通过点集离散化与并行Voronoi图构建生成初始Delaunay三角网;随后,围绕约束边插入过程中的相交检测与局部重构需求,提出一种基于双阶段前缀和的动态数据布局策略,实现相交信息的紧凑存储与高效索引。在此基础上,设计了动态相交边存储表与动态约束影响域索引表两类核心数据结构,分别用于快速定位约束边相交的候选边及受影响三角形区域,从而将传统全局搜索过程转化为局部索引访问,显著降低访存开销。针对并行拓扑更新中的线程冲突与一致性维护问题,提出一种基于局部一致性的自适应并行边翻转机制,以约束边为驱动单元,将边翻转过程限定在独立线程域内,通过原子操作与轻量级锁实现安全的拓扑更新,并结合双缓冲队列实现非法边的动态传播与收敛,有效避免了重复翻转、写冲突及邻接关系失序等并发问题。实验结果表明,在百万级点集及约束条件下,相较于传统串行方法及现有GPU并行实现,该算法在计算效率方面具有显著提升,且在真实地理空间数据上表现出良好的稳定性与适应性。研究结果验证了基于计算着色器的并行CDT构网方法在跨平台几何计算与高性能图形处理中的应用潜力。

关键词: 约束Delaunay三角剖分, 计算着色器, GPU, 并行计算, 数据结构

Abstract:

Constrained Delaunay Triangulation (CDT) has significant practical applications in geographic information systems, 3D modeling, and engineering simulation. However, when large-scale datasets are involved, its construction process still faces challenges such as insufficient parallel efficiency, high topological update overhead, and strong platform dependency. To address these issues, a parallel constrained Delaunay triangulation algorithm based on compute shaders was proposed. Centered on the compute shader execution model, the proposed approach leveraged the fine-grained thread parallelism and high-throughput memory architecture of GPUs to achieve full-process parallelization of the CDT mesh construction workflow. In terms of algorithm implementation, the initial Delaunay triangulation was first generated through point set discretization and parallel Voronoi diagram construction. Subsequently, to meet the intersection-detection and local-reconstruction requirements during the insertion of constrained edges, a dynamic data-layout strategy based on a two-stage prefix sum was proposed to achieve compact storage and efficient indexing of intersection information. Based on this, two core data structures were designed: a dynamic intersecting-edge storage table and a dynamic constraint influence-domain index table. These were used to rapidly locate candidate edges intersecting with constraint edges and the affected triangular regions, respectively, thereby transforming the traditional global search process into local index access and significantly reducing memory access overhead. To address thread conflicts and consistency-maintenance issues in parallel topology updates, an adaptive parallel edge-flip mechanism based on local consistency was proposed. Using constraint edges as the driving unit, this mechanism confined the edge-flip process to independent thread domains. Concurrency-safe updates were achieved through atomic operations and lightweight locks, while a double-buffered queue was employed to facilitate the dynamic propagation and convergence of invalid edges, effectively avoiding concurrency issues such as redundant flips, write conflicts, and out-of-order adjacencies. Experimental results demonstrated that, for datasets containing millions of points and largescale constrained-edge sets, the proposed algorithm achieved significant improvements in computational efficiency compared to traditional serial methods and existing GPU parallel implementations, while exhibiting excellent stability and adaptability on real-world geospatial data. The research findings validated the application potential of the parallel CDT network construction method based on compute shaders in cross-platform geometric computation and high-performance graphics processing.

Key words: constrained Delaunay triangulation, compute shader, GPU, parallel computing, data structure

中图分类号: