1000-9825/2003/14(04)0845 ©2003 Journal of Software 软 件 学 报 Vol.14, No.4
一个有效的多边形裁剪算法
1+ 2 2
刘勇奎 , 高 云 , 黄有群
1(大连民族学院 计算机科学与工程系,辽宁 大连 116600)
2 (沈阳工业大学 信息科学与工程学院,辽宁 沈阳 110023)
An Efficient Algorithm for Polygon Clipping
1+ 2 2
LIU Yong-Kui , GAO Yun , HUANG You-Qun
1(Department of Computer Science and Engineering, Dalian Nationalities University, Dalian 116600, China)
2(College of Information Science and Engineering, Shenyang University of Technology, Shenyang 110023, China)
+ Corresponding author: Phn: 86-411-7612616 ext 4442, Fax: 86-411-7612616 ext 4442, E-mail: ykliu@
Received 2001-07-31; Accepted 2001-10-17
Liu YK, Gao Y, Huang YQ. An efficient algorithm for polygon clipping . Journal of Software, 2003,14(4):
845~856.
Abstract: Polygon clipping is more often used than line clipping in practice, so it is the main subject in clipping
research now. An efficient algorithm for polygon clipping which processes general polygons including concave
polygons and polygons with holes inside is presented in this paper. This algorithm can be used to calculate not only
intersection (clipping) but also set-theoretic differences and union of two polygons. It is based on some new
techniques proposed in this paper. Firstly, singly linked lists are used as the data structure of this algorithm rather
than doubly linked lists or trees as other algorithms use, so less memory space and running time are required.
Secondly, the relationship between the entry and exit points on the two polygons is found, which, with the
reasonable operations on the lists, reduces the times that the lists are traversed and allows the polygon to be input
clockwise or counterclockwise. Lastly, findi
本文发布于:2024-01-28 17:11:04,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/17064330688964.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |