Parallel CUDA-Based Optimization of the Intersection Calculation Process in the Greiner–Hormann Algorithm
The Greiner–Hormann algorithm is a commonly used polygon overlay analysis algorithm. It uses a double-linked list structure to store vertex data, and its intersection calculation step has a significant effect on the overall operating efficiency of the algorithm. To address the time-consuming intersection calculation process in the Greiner–Hormann algorithm, this paper presents two kernel functions that implement a GPU parallel improvement algorithm based on CUDA multi-threading. This method allocates a thread to each edge of the subject polygon, determines in parallel whether it intersects with each edge of the clipping polygon, transfers the number of intersection points back to the CPU for calculation, and opens up corresponding storage space on the GPU side on the basis of the total number of intersection points; then, information such as intersection coordinates is calculated in parallel. In addition, experiments are conducted on the data of eight polygons with different complexities, and the optimal thread mode, running time, and speedup ratio of the parallel algorithm are statistically analyzed. The experimental results show that when a single CUDA thread block contains 64 threads or 128 threads, the parallel transformation step of the Greiner–Hormann algorithm has the highest computational efficiency. When the complexity of the subject polygon exceeds 53,000, the parallel improvement algorithm can obtain a speedup ratio of approximately three times that of the serial algorithm. This shows that the design method in this paper can effectively improve the operating efficiency of the polygon overlay analysis algorithm in the current large-scale data context.
Authors
- Yuke Zhou (ORCID: https://orcid.org/0000-0002-2559-0241)
- Jiwei Zuo
- Junfu Fan (ORCID: https://orcid.org/0000-0001-8987-7930)
- Yi Zhang (ORCID: https://orcid.org/0000-0003-0391-7159)
- Qingyun Liu
- Kuan Li (ORCID: https://orcid.org/0000-0002-6812-6932)
Institutions
- Shandong University of Technology (CN)
- Central South University (CN)
- PLA Information Engineering University (CN)
- Chinese Academy of Sciences (CN)
- Institute of Geographic Sciences and Natural Resources Research (CN)
- Shandong Agricultural University (CN)
Publication Details
- Journal
- Algorithms
- Published
- 2025-03-05
- DOI
- https://doi.org/10.3390/a18030147
- Primary Topic
- Computational Geometry and Mesh Generation
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- National Key Research and Development Program of China