An efficient algorithm to clip a 2D-polygon against a rectangular clip window

Sushil Chandra Dimri, Umesh Kumar Tiwari, Mangey Ram
{"title":"An efficient algorithm to clip a 2D-polygon against a rectangular clip window","authors":"Sushil Chandra Dimri,&nbsp;Umesh Kumar Tiwari,&nbsp;Mangey Ram","doi":"10.1007/s11766-022-4556-0","DOIUrl":null,"url":null,"abstract":"<div><p>Polygon clipping is of great importance in computer graphics. One of the popular algorithms to clip a polygon is Cohan—Sutherland Hodgeman algorithm which is based on line clipping. Cohan—Sutherland Hodgeman algorithm clips the polygon against the given rectangular clip window with the help of line clipping method. Cohan—Sutherland algorithm requires traversing the polygon in anti clockwise direction (positive orientation). In this work we propose an efficient polygon clipping algorithm against a rectangular clip window. Proposed algorithm uses parametric representation of polygon edges. Using the concept of point clipping, we can find required intersection points of edges of polygon with clip window boundaries. Well suited numerical illustrations are used to explain the proposed polygon clipping method. The proposed algorithm is computationally less expensive and comprehensive.</p></div>","PeriodicalId":55568,"journal":{"name":"Applied Mathematics-A Journal of Chinese Universities Series B","volume":"37 1","pages":"147 - 158"},"PeriodicalIF":1.3000,"publicationDate":"2022-03-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Applied Mathematics-A Journal of Chinese Universities Series B","FirstCategoryId":"1089","ListUrlMain":"https://link.springer.com/article/10.1007/s11766-022-4556-0","RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

Abstract

Polygon clipping is of great importance in computer graphics. One of the popular algorithms to clip a polygon is Cohan—Sutherland Hodgeman algorithm which is based on line clipping. Cohan—Sutherland Hodgeman algorithm clips the polygon against the given rectangular clip window with the help of line clipping method. Cohan—Sutherland algorithm requires traversing the polygon in anti clockwise direction (positive orientation). In this work we propose an efficient polygon clipping algorithm against a rectangular clip window. Proposed algorithm uses parametric representation of polygon edges. Using the concept of point clipping, we can find required intersection points of edges of polygon with clip window boundaries. Well suited numerical illustrations are used to explain the proposed polygon clipping method. The proposed algorithm is computationally less expensive and comprehensive.

查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
一种针对矩形剪辑窗口剪辑二维多边形的高效算法
多边形裁剪在计算机图形学中具有重要意义。一种流行的多边形裁剪算法是基于线裁剪的Cohan-SSutherland-Hodgeman算法。Cohan-SSutherland-Hodgeman算法借助于线剪裁方法将多边形剪裁到给定的矩形剪裁窗口上。Cohan-Sutherland算法要求在逆时针方向(正方向)遍历多边形。在这项工作中,我们提出了一种针对矩形剪切窗口的有效多边形剪切算法。所提出的算法使用多边形边的参数表示。利用点裁剪的概念,我们可以找到多边形边与裁剪窗口边界所需的交点。使用合适的数值插图来解释所提出的多边形裁剪方法。所提出的算法在计算上成本较低且全面。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
10.00%
发文量
33
期刊介绍: Applied Mathematics promotes the integration of mathematics with other scientific disciplines, expanding its fields of study and promoting the development of relevant interdisciplinary subjects. The journal mainly publishes original research papers that apply mathematical concepts, theories and methods to other subjects such as physics, chemistry, biology, information science, energy, environmental science, economics, and finance. In addition, it also reports the latest developments and trends in which mathematics interacts with other disciplines. Readers include professors and students, professionals in applied mathematics, and engineers at research institutes and in industry. Applied Mathematics - A Journal of Chinese Universities has been an English-language quarterly since 1993. The English edition, abbreviated as Series B, has different contents than this Chinese edition, Series A.
期刊最新文献
Complete moment convergence for ND random variables under the sub-linear expectations Solutions for Schrödinger-Poisson system involving nonlocal term and critical exponent Flow and heat transfer of a nanofluid through a porous medium due to stretching/shrinking sheet with suction, magnetic field and thermal radiation Zero distribution of some difference polynomials Electro-mechanical coupling properties of band gaps in an elastic/piezoelectric phononic crystal nonlocal nanobeam with periodically attached “spring-mass” resonators
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1