欢迎访问《图学学报》 分享到:

图学学报

• 几何设计与计算 • 上一篇    下一篇

有效的混合圆弧扫描转换算法

  

  • 出版日期:2012-12-31 发布日期:2015-07-29

Efficient hybrid scan-conversion algorithm for circles drawing

  • Online:2012-12-31 Published:2015-07-29

摘要: 为了提高直线和曲线的光栅转换速度而产生了多步算法和行程算法。论文
分析了光栅圆弧的特性,利用对中点法的结构和决策参数的重新构造,提出了一种简单、快
速的行程计算方法。该方法以2 点步进为主进行行程计算,并可以容易地结合局部模式分析
以处理复杂的光栅模式。实验和分析表明,所形成的新算法综合利用了2 点步进和行程方法
的优势,有效地减少了计算量和I/O 次数,其圆弧绘制速度明显优于现有其它算法,且理论
推导简单,不含乘法、开方等复杂运算,硬件实现容易,并可以推广到其他圆锥曲线的绘制。

关键词: 圆弧绘制, 整数运算, 行程算法, 多步算法, 扫描转换

Abstract: In order to improve speed of circles drawing, some multi-step or run-length slice
algorithms are proposed. Based on careful analysis of the characteristics of raster-scan circles, a
simple and fast method to calculate lengths of slices is presented in this paper. In the new
algorithm, double-step control is mainly used for larger horizontal run-slices, and mixed
single-step and double-step control is adopted for complicated pattern and run-slices with 45°
angle, furthermore, each horizontal run-slice is output at once, only about 2.9 times basic
operations are needed for once stepping on average. Experiments and analysis shows that the new
algorithm is significantly faster than previously published ones, and its’ derivation can be gained
in a simple manner. Furthermore, it can be implemented with hardware since no complex
operations are involved, and can be developed to draw other conic curves.

Key words: circle drawing, integer operation, run-length algorithm, multi-point drawing;
scan-conversion