多边形裁剪算法c语言,一个有效多边形裁剪算法.pdf

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值