期刊文献+

基于交点和区域特征的线段裁剪算法 被引量:1

A Segment Clipping Algorithm Based on the Intersection and Region Features
下载PDF
导出
摘要 由Weiler-Atherton和Cohen-Sutherland算法思想,提出一种基于交点和区域特征的线段裁剪算法。算法将矩形窗口按水平方向和竖直方向各划分成三个区域,并从线段的有向性出发,根据起点和终点的不同给出-1、0和1的编码值,从而简化了"弃之"情况的判断。在求交中,为了避免直线段与裁剪边的多次求交,充分利用直线段"入点"和"出点"的唯一性和成对存在的性质,使得该算法具有较强的稳定性和较高的裁剪效率。 Proposes a new algorithm of straight-line segment clipping against rectangular window based on the thought of Weiler-Atherton and Co-hen-Sutherland algorithm. In this algorithm, divides the rectangular window into three regions by the horizontal and vertical direction each other. To reserve the straight-line directionality, every line endpoint in a region code is assigned a different value of-1, 0 or 1, and it can easily determine the“whole out” situation by code operations. To reduce the number of intersection computed, it takes full advan-tage of the properties that the line segment has only “in” and “out” point and exist in pairs. As a result, the application proves that this algorithm has the strong stability and high clipping efficiency.
出处 《现代计算机(中旬刊)》 2014年第9期51-53,57,共4页 Modern Computer
关键词 裁剪 线段 交点特征 区域编码 Clipping Straight-Line Segment Intersection Features Region Code
  • 相关文献

参考文献6

  • 1Nieholl TM, Lee DT, Nicholl RA. An Efficient New Algorithm for 2D Line Clipping[J]. Computer Graphics, 1987, 21 (4):253-262.
  • 2孔德慧,尹宝才,刘媛媛.对 Cohen-Sutherland线段裁剪算法的改进[J].北京工业大学学报,2002,28(4):483-486. 被引量:14
  • 3李竹林,雷岗.一种改进的Sutherland-Cohen裁剪算法[J].计算机工程与应用,2012,48(34):175-178. 被引量:5
  • 4赫恩,贝克.计算机图形学(C语言版)[M].北京:清华大学出版社,2004.
  • 5何援军.计算机图形学(第二版)[M].北京:机械工业出版社,2011.
  • 6Ecma/TC39-TG5/2005/024, C++/CLI Language Specification (Working Draft 1.14, Aug 2005)[S].

二级参考文献6

共引文献17

同被引文献3

  • 1陆枫,何云峰.计算机图形学基础[M].2版.北京:电子工业出版社,2012.
  • 2/ingjing Han."Improvement in the Cohen-Sutherland Line Segment Clipping Algorithm[C]//2013 IEEE International Conference on Granular Computing(GrC).2013.
  • 3孔德慧,尹宝才,刘媛媛.对 Cohen-Sutherland线段裁剪算法的改进[J].北京工业大学学报,2002,28(4):483-486. 被引量:14

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部