检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
出 处:《微电子学与计算机》2015年第8期150-153,共4页Microelectronics & Computer
基 金:国家自然科学基金项目(61379026);陕西省教育厅项目(2013JK1124);国家大学生创新训练项目
摘 要:C-S(Cohen-Sutherland)直线段裁剪算法因直线段分类的不完全和直线与窗口边界求交点次数多而降低算法效率.提出了一种改进C-S裁剪算法,基本思想是首先根据裁剪窗口的顶点与直线的关系对直线的分类条件进行改进,然后利用直线分类时运算的符号值判断直线与窗口边的相交情况.改进的算法能准确地判断出三类直线,同时,在不需要任何辅助操作与运算的情况下,使得求交点次数降为最多两次,大大提高算法的效率.算法思想简单,直线判断与裁剪过程容易,有利于编程实现,而且该算法可推广到任意凸多边形裁剪窗口.C-S(Cohen-Sutherland)segment clipping algorithm is lower efficiency because line segment classification is not completely and there are four intersection operations of line segment and window edge lines.In this paper,a modified C-S line-clipping algorithm based on sign judgment is proposed.The basic idea is that the line classification conditions was improved by sign relations of four windows vertex and line firstly,then the fact intersection of line and window edges was judged using the sign once again.The modified algorithm with out only judge three line types exactly and completely,but also reduce intersection to two numbers not any auxiliary operation and calculation.The modified algorithm is simple and efficiency,line judgment,clipping process and programming is easy,and the algorithm can be extended to arbitrary convex polygon clipping window.
分 类 号:TP301[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.135.246.88