首页 | 本学科首页   官方微博 | 高级检索  
     

基于顶点编码的多边形窗口线裁剪高效算法
引用本文:陆国栋,邢世海,彭群生.基于顶点编码的多边形窗口线裁剪高效算法[J].计算机学报,2002,25(9):987-993.
作者姓名:陆国栋  邢世海  彭群生
作者单位:浙江大学CAD,&,CG国家重点实验室,杭州,310027
基金项目:国家杰出青年基金 (6992 5 2 0 4),创新群体科学研究基金 (60 0 2 12 0 1)资助
摘    要:从多边形窗口线裁剪的本质特征出发,首次提出窗口顶点编码的新概念。以被裁剪直线为参照系,将多边形窗口划分为正区、负区和近零区三类区域,从而快速完成多边形窗口顶点编码。通过窗口顶点编码与传统的线段编码相结合,无须求交即可快速排除大部分窗外线段;进一步可以直接得到与直线相交的窗口边,加快了求交进程。更有意义的是,通过窗口顶点编码还可以准确判断并高效处理如下两类特殊相交情况:裁剪直线通过多边形的顶点、裁剪直线通过多边形的边。实验结果表明,新算法提高了裁剪效率并具有很好的稳定性。

关 键 词:顶点编码  多边形窗口  线裁剪高效算法  线段编码  线段求交  计算机图形学  图形系统
修稿时间:2001年7月6日

An Efficient Algorithm of Line Clipping Against Polygonal Window Based on the Vertex Encoding
LU Guo-Dong,XING Shi-Hai,PENG Qun-Sheng.An Efficient Algorithm of Line Clipping Against Polygonal Window Based on the Vertex Encoding[J].Chinese Journal of Computers,2002,25(9):987-993.
Authors:LU Guo-Dong  XING Shi-Hai  PENG Qun-Sheng
Abstract:A new concept of the window's vertex encoding is proposed for the first time based on the essential characteristic of the line clipping against polygonal window. The line to be clipped is used as the basis of reference and the polygonal window is divided into three regions (that is, the positive region, the negative region and the near zero region). As a result, the vertexes of a polygonal window can be encoded quickly. The advantages of both vertex encoding of clipping window and traditional line segment encoding are combined in the new algorithm and all the line segments outside the window can be abandoned quickly without intersection calculation. In addition, the edge of the clipping window that intersects with the line segment can be determined directly so that the speedup of the intersection calculation can be achieved. What is more significant, two kinds of singular intersection cases that the line segment goes through the vertexes or the edges of the polygon can be accurately identified and efficiently handled. The experimental results have proved that the new algorithm further improves the clipping efficiency and it has good stability at the same time.
Keywords:polygonal window  line clipping  vertex encoding  line segment encoding  line segment intersection
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号