Journal of Graphics
Previous Articles Next Articles
Online:
Published:
Abstract: An effective algorithm for polygon clipping which supports simple polygons including concave polygons and polygons with holes inside is presented in this paper. This algorithm can be used to calculate set-theoretic differences and union of two polygons. Most analogous algorithms are classifying point of intersection by entry points and exit points, then generating output polygons by tracing vertex. Different from these algorithms, this paper classifies point of intersection by normal point of intersection and vertex of intersection, and designs different tracing strategies for them. By using these strategies alternately and recursively, a steady tracing process to cope with degenerate input is putted forward. To improve efficiency of edge intersection, which is the bottleneck of polygon clipping, it partitions the polygon that has more numbers of edges to grids and brings forward an algorithm for edge partition based on Bresenham line-drawing algorithm. At the end of this paper, the algorithm is compared with the existing algorithms and the result shows that it has higher speed than others.
Key words: concave polygons, polygon clipping, tracing strategy, grid partition, singly linked list
Wang Rongfeng, Liao Xuejun. Polygon clipping algorithm based on dual-strategies tracing and grid partition[J]. Journal of Graphics.
0 / / Recommend
Add to citation manager EndNote|Ris|BibTeX
URL: http://www.txxb.com.cn/EN/
http://www.txxb.com.cn/EN/Y2012/V33/I6/45