Line Clipping by Managing Polygon Edges in Convex Polylines

Wencheng Wang, Chunjuan Sun, Jing Li, E. Wu
{"title":"Line Clipping by Managing Polygon Edges in Convex Polylines","authors":"Wencheng Wang, Chunjuan Sun, Jing Li, E. Wu","doi":"10.1080/2151237X.2008.10129261","DOIUrl":null,"url":null,"abstract":"Existing algorithms for clipping line segments against a concave polygon always need to compute all edges, resulting in a time complexity O(n) for computing intersection points, where n is the number of edges of the clipping polygon. This paper presents a new algorithm that first separates polygon edges into convex polylines and then clips lines against them, where a convex polyline is a sequence of edges that can form a convex polygon by themselves. As a result, the time complexity for computing intersection points is reduced, varying adaptively between O(log n) and O(n), and is lower than O(n) in most cases. To further improve clipping efficiency the new algorithm is combined with an axis-aligned BSP tree that is used to manage convex polylines for quickly finding convex polylines that might intersect the clipped lines. Examples show that the new algorithm can be several times faster than existing algorithms for line clipping.","PeriodicalId":318334,"journal":{"name":"Journal of Graphics Tools","volume":"50 1-5 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2008-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Graphics Tools","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1080/2151237X.2008.10129261","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

Existing algorithms for clipping line segments against a concave polygon always need to compute all edges, resulting in a time complexity O(n) for computing intersection points, where n is the number of edges of the clipping polygon. This paper presents a new algorithm that first separates polygon edges into convex polylines and then clips lines against them, where a convex polyline is a sequence of edges that can form a convex polygon by themselves. As a result, the time complexity for computing intersection points is reduced, varying adaptively between O(log n) and O(n), and is lower than O(n) in most cases. To further improve clipping efficiency the new algorithm is combined with an axis-aligned BSP tree that is used to manage convex polylines for quickly finding convex polylines that might intersect the clipped lines. Examples show that the new algorithm can be several times faster than existing algorithms for line clipping.
通过管理凸折线中的多边形边缘来进行线裁剪
现有的针对凹多边形裁剪线段的算法总是需要计算所有的边,导致计算交点的时间复杂度为O(n),其中n为裁剪多边形的边数。本文提出了一种新的算法,该算法首先将多边形边缘分割成凸折线,然后在凸折线上剪切线,其中凸折线是一组可以自己形成凸多边形的边缘序列。这样可以降低计算交点的时间复杂度,在O(log n)和O(n)之间自适应变化,大多数情况下小于O(n)。为了进一步提高裁剪效率,该算法与用于管理凸折线的轴向BSP树相结合,以快速找到可能与裁剪线相交的凸折线。实例表明,该算法比现有的线裁剪算法快数倍。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信