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

凸多边形窗口线裁剪的折半查找算法
引用本文:李伟青.凸多边形窗口线裁剪的折半查找算法[J].计算机辅助设计与图形学学报,2005,17(5):962-965.
作者姓名:李伟青
作者单位:浙江大学CAD&CG国家重点实验室,杭州,310027
摘    要:在Skala算法基础上,提出了一个更加快速的线裁剪算法.该算法将裁剪窗口分割成4条折线,依据折线的两个端点与被裁剪直线的位置关系,确定折线是否与直线相交;采用折半查找方法,快速确定与直线相交的窗口边界线,并求出交点位置.与Cyrus-Beck算法相比,该算法在乘除法次数和计算速度方面具有非常明显的优势,也比、Skala算法的效率更高。

关 键 词:计算机图形学  线裁剪  计算复杂度  折半查找

Bisearch-Based Line Clipping Algorithm Against a Convex Polygonal Window
LI Weiqing.Bisearch-Based Line Clipping Algorithm Against a Convex Polygonal Window[J].Journal of Computer-Aided Design & Computer Graphics,2005,17(5):962-965.
Authors:LI Weiqing
Abstract:A fast line clipping algorithm against a convex polygonal window based on Skala algorithm is presented in this paper. By the algorithm, the clipping window is first divided into four polylines, then the clip of a line against the window is performed by determination of the intersection of the line with each of the four polylines according to the positional relationships between the two end points of each polyline and the line to be clipped. A bisearch method is used to quickly find out the window's edges that intersect the line to be clipped. The algorithm uses less multiplication and division operations and has higher execution speed, in comparison with the others like Cyrus-Beck algorithm and Skala algorithm.
Keywords:computer graphics  line clipping  computing complexity  bisearch
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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