期刊文献+

基于栅格的环形多边形区域填充算法

An new algorithm for filling circular polygon based on grid
下载PDF
导出
摘要 环形多边形是指在一个多边形里除去嵌套的一个或多个其他多边形的剩余部分,根据环形多边形的形状特征,在栅格原理的基础上采用等间距平行线原理提出了一种环形多边形区域填充新算法。首先,依据等间距平行线原理在填充区域绘制若干条任意角度的等间距的平行线,依次计算每条线与多边形轮廓的交点并排序配对输出;其次,把多边形区域栅格化,根据交点坐标计算每条线经过的栅格个数及行列值;最后,对所有栅格单元进行填充,从而实现指定区域的填充。通过实验数据表明,等间距平行线算法能适用于任意角度的区域填充,效果良好。 An annular polygon is the remaining part of a polygon in which one or more other polygons are nested,based on the principle of grid and equidistant parallel lines,a new algorithm for filling circular polygon is proposed by using the principle of equidistant parallel lines.First,several equal-spaced parallel lines at any angle are drawn in the filled area according to the principle of equidistant parallel lines and the intersection points of each line.Secondly,the polygon contour are calculated in turn and the corresponding output pairs are sorted,the row and column values of raster cells are calculated.Las,populates all grid elements,so as to fill the specified area.The experiment data show that the algorithm can be applied to any angle of the region filling and effect is good.
作者 邱国清 QIU Guo-qing(Computer College,Minnan Normal University,Zhangzhou 363000,China)
出处 《陕西理工大学学报(自然科学版)》 2021年第4期40-46,共7页 Journal of Shaanxi University of Technology:Natural Science Edition
基金 福建省教育厅中青年教师科研项目(JAT160290,JT180298)。
关键词 等间距平行线 栅格 裁剪 嵌套 环形多边形 equiditant parallel line grid cut out nestint circular polygon
  • 相关文献

参考文献7

二级参考文献59

共引文献42

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部