首页 | 本学科首页   官方微博 | 高级检索  
     

逐点生成参数曲线的双步算法
引用本文:刘勇奎,周晓敏.逐点生成参数曲线的双步算法[J].计算机辅助设计与图形学学报,2002,14(7):619-623.
作者姓名:刘勇奎  周晓敏
作者单位:1. 大连民族学院计算机系,大连,116600
2. 沈阳工业大学信息科学与工程学院,沈阳,110023
基金项目:国家自然科学基金 (6940 3 0 0 4),辽宁省科技基金 (0 14 5 0 8)资助
摘    要:首先介绍参数曲线逐点绘制的现有算法;然后提出一个最佳的步长值并验证了其优于现有算法的步长值,且证明了其最佳性,减轻了取点过密现象。由于已找到了取点数的最佳值,因此对于传统的单步曲线生成算法来说,取点过密问题也只能解决到此程度。为了进一步解决此问题,又提出一个只用整数运算的逐点生成参数曲线的双步算法。该算法的一次循环允许沿曲线向前走两步,使算法所生成的点数减少了一半,最后所绘制的有效点则与单步算法完全相同。加快了算法的速度。实验结果表明,新算法的有效点率几乎达到1,较好地解决了取点过密问题。实验结果还表明,新算法的运行时间也远远少于现有算法。该法对于任何参数曲线都是适用的。

关 键 词:参数曲线  逐点绘制  整数运算  双步算法  计算机图形学  曲线绘制
修稿时间:2001年6月19日

Pixel-Level Double-Step Algorithm for Rasterizing Parametric Curves
Liu Yongkui,Zhou Xiaomin.Pixel-Level Double-Step Algorithm for Rasterizing Parametric Curves[J].Journal of Computer-Aided Design & Computer Graphics,2002,14(7):619-623.
Authors:Liu Yongkui  Zhou Xiaomin
Affiliation:Liu Yongkui1) Zhou Xiaomin2 ) 1 )
Abstract:Existing pixel- level algorithms for rasterizing parametric curves aim ed at finding in single step an optim um step- length for the whole curve. We propose a new approach,its result is verified to be better than those of the existing ones and is proved to be optimum.Thus the problem of oversam pling has gotan improved solution so far for the traditional single- step algorithm . To m ake further progress,a double- step algorithm that uses only integer arithm etic is presented.The number of points com puted by this algorithm is reduced by half by doubling the step- length in case that the same pixels are set as the single- step algorithm s do.The results of performance tests show that the ratio of the number of effective points to the num ber of all points com puted is nearly 10 0 % ,which means that the problem of oversam pling is solved even better.The results also show that the tim e needed by the new algorithm for rasterizing curves is much less than that needed by the other algorithms. The new algorithm can be used to draw any parametric curves.
Keywords:param etric curve  pixel level  integer arithmetic  double- step algorithm
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号