格网划分的双策略跟踪多边形裁剪算法  被引量:3

Polygon clipping algorithm based on dual-strategies tracing and grid partition

在线阅读下载全文

作  者:汪荣峰 廖学军 

机构地区:[1]装备学院航天指挥系,北京101416

出  处:《图学学报》2012年第6期45-49,共5页Journal of Graphics

摘  要:论文提出了一种高效稳定的多边形裁剪算法,算法支持带内环的平面简单多边形,同时也支持多边形的"并"和"差"等布尔运算。首先,设计了算法所需的数据结构;其次,基于直线扫描转换Bresenham算法原理提出了边网格划分的有效算法,并应用一个简单的方法避免不同网格内边的重复求交;最后,将交点分类为普通交点和顶交点,并针对这两类交点构造了不同的跟踪策略,在跟踪过程中交替、递归地应用这两个策略来确保算法处理特殊情况时的稳定性。与其它同类算法的比较表明,新算法具有更高的效率。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.

关 键 词:凹多边形 多边形裁剪 跟踪策略 网格划分 单线性链表 

分 类 号:TP391[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象