期刊文献+

任意宽度直线生成算法的研究与实现 被引量:2

Research on Algorithm of Arbitrary Width Line Generation
下载PDF
导出
摘要 针对传统基于线与方形刷子原理的任意宽度直线生成算法的缺点,提出了一种高效的任意宽度直线生成新算法.该方法首先将任意宽度的直线段看作1个矩形域,并根据直线的宽度和斜率自适应地确定该矩形域的4个顶点;然后,利用改进的Bresenham直线算法连接上述4个顶点得到1个封闭的矩形域;最后,利用扫描线种子填充算法对该封闭矩形域进行填充即可得到任意宽度的直线.数值实例表明,该方法不仅可以生成任意宽度、任意斜率的直线,而且算法简单、有效,可以广泛地应用于各种CAD/CAM造型系统中任意宽度直线的生成. Focusing on the defects of the algorithm of arbitrary width line generation that based on Line-brush and Square-brush,this paper proposes an efficient algorithm.Firstly,taking the arbitrary width line as rectangular area,fix the four vertexes adaptively according to the width and slope.Secondly,get a closed rectangular area by connecting the four vertexes through the modified Bresenham algorithm of line drawing.Finally,make it by filling the closed rectangular area through scan line seed fill algorithm.Numerical examples demonstrate the method not only can generate arbitrary width and slope line,but also be concise and efficient.It can be extensively applied to arbitrary width line generation in CAD/CAM.
作者 龙艳婷
出处 《沈阳工程学院学报(自然科学版)》 2012年第4期353-355,358,共4页 Journal of Shenyang Institute of Engineering:Natural Science
基金 陕西省教育厅基金资助项目(11JK1052)
关键词 直线生成 BRESENHAM 算法 区域填充 判定变量 ine-generating Bresenham algorithm area filling determine variable
  • 相关文献

参考文献7

二级参考文献30

  • 1黄斌茂,张利.基于自适应步长的直线生成算法[J].清华大学学报(自然科学版),2006,46(10):1719-1722. 被引量:4
  • 2JamesD FoleyAndriesvanDamStevenK FeinerJohnE.著.董上海 唐泽圣 李华 等译.计算机图形学导论[M].北京:机械工业出版社,2004..
  • 3Bresenham J E.Algorithm for computer control of a digital plotter[J].IBM Systems Journal,1965,4(1):25-30.
  • 4Wright W E.Parallelization of Bresenham's line and circle algorithms[J].IEEE CG&A,1990,10(5):60-67.
  • 5Earnshaw W E.Line tracking for incremental plotters[J].The Computer Journal,1980,23(1):46-52.
  • 6Chen J X.Multiple segment line scan-conversion[J].Computer Graphics Forum,1997,16(5):257-268.
  • 7Gardner P L.Modifications of Bresenham's algorithm for display[R].IBM Tech Disclosure Bull.18,1975:1595-1596.
  • 8WU Xiaolin,Rokne J G.Double-step incremental generation of lines and circles[J].Computer Vision,Graphics and Image Processing,1987,37(3):331-344.
  • 9Bao P G,Rokne J G.Quadruple-step line generation[J].Computers & Graphics,1989,13(4):461-469.
  • 10Gill G W.N-step incremental straight-line algorithms[J].IEEE CG&A,1994,14(3):66-72.

共引文献34

同被引文献12

引证文献2

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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