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

基于凸剖分的多边形窗口线裁剪算法
引用本文:李静,王文成,吴恩华.基于凸剖分的多边形窗口线裁剪算法[J].计算机辅助设计与图形学学报,2007,19(4):425-429.
作者姓名:李静  王文成  吴恩华
作者单位:1. 中国科学院软件研究所计算机科学国家重点实验室,北京,100080;中国科学院研究生院,北京,100049
2. 中国科学院软件研究所计算机科学国家重点实验室,北京,100080
3. 中国科学院软件研究所计算机科学国家重点实验室,北京,100080;澳门大学科学技术学院电脑与资讯科学系,澳门
基金项目:国家自然科学基金 , 国家重点基础研究发展计划(973计划) , 国家高技术研究发展计划(863计划) , 澳门大学校科研和教改项目
摘    要:以不增加新点的方式将多边形剖分为一些凸多边形,并基于这些多边形的边建立二叉树进行管理.裁剪计算时,根据二叉树快速地找到与被裁剪线有相交的凸多边形,然后运用高效的凸多边形裁剪算法进行线裁剪.该方法能自适应地降低裁剪计算的复杂度,使其在O(logn)和O(n)之间变化,并在大多数情况下小于O(n),其中n是多边形边数.虽然该方法需要进行预处理,但在许多应用(如多边形窗口对多边形的裁剪)中,其总执行时间(包括预处理时间和裁剪时间)比已有的不需要预处理的裁剪算法少很多.

关 键 词:多边形窗口  线裁剪  凸剖分  二叉树  加速  凸剖分  多边形窗口  裁剪算法  Decomposition  Convex  Based  Polygon  时间  应用  预处理  情况  变化  复杂度  自适应  方法  线裁剪  运用  裁剪线  快速  计算
收稿时间:2006-09-01
修稿时间:2006-09-01

Line Clipping Against a Polygon Based on Convex Decomposition
Li Jing,Wang Wencheng,Wu Enhua.Line Clipping Against a Polygon Based on Convex Decomposition[J].Journal of Computer-Aided Design & Computer Graphics,2007,19(4):425-429.
Authors:Li Jing  Wang Wencheng  Wu Enhua
Affiliation:1 State Key Laboratory of Computer Science , lnstitute of Software , Chinese Academy of Sciences , Beijing 100080;2 Graduate University of Chinese Academy of Sciences, Beijing 100049; 3 Department of Computer and Information Science, Faculty of Science and Technology, University of Macau , Macao
Abstract:A novel line clipping algorithm against a general polygon is proposed in the paper. By the approach, the polygon is first decomposed into a set of convex polygons without adding new points and then these convex polygons are organized in a binary space partition tree, as a search tree. In the clipping procedure, the search tree is used to find the candidate convex polygons that intersect the clipped line segment and then an efficient line clipping algorithm against a convex polygon is applied to each such candidate. The algorithm can adaptively decrease the time complexity for line clipping, ranging from O(logn) to O(n), but less than O(n) in most cases, where n is the number of the edges of the polygon. Although a preprocess is required, in many applications (e.g. clipping a polygon against another polygon), the total time consumed by the new method, including the time for preprocess and clipping calculation, is much less than that by the existing algorithms without preprocess.
Keywords:acceleration polygonal window    line clipping  convex decomposition  binary space partition tree  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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