检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]中国电子科技集团公司第二十九研究所,成都610036
出 处:《计算机工程与应用》2013年第6期180-182,194,共4页Computer Engineering and Applications
摘 要:分析与讨论了几种线段二维裁减和绘制算法,为了提高图形绘制的精确度和计算速度,通过实验在Windows平台上利用C语言和DirectDraw接口实现了这些算法。针对不同的实验参数,对各个算法性能作出了比较。分析结果显示:在实现过程中可以对直线裁剪的累计误差处理,对整数除法的四舍五入处理等细节改良,从而使得绘制的图形更加精确,付出的代价非常小。实验结果表明,采用最优树裁剪算法对线段进行二维裁剪并利用步距长度片算法进行绘制,能够高效完成显示任务,结果具有较好的参考价值。Several algorithms in computer graphics for two-dimensional line clipping and drawing are analyzed and discussed in this paper. In order to improve the accuracy of plotting and calculation speed, the implementation of these algorithms through ex- periments in the windows platform by using C language and a DirectDraw interface are done. The comparison of each algorithm performance is made by using different experimental parameters. Analysis results show that accuracy and cost of line clipping can benefit a lot from the process of accumulative errors and to round up or down in division. Experimental results show that by using the optimal tree algorithm for two-dimensional line clipping and the run length slice algorithm for line drawing can effi- ciently complete the display task. A good reference value for computer graphics can be obtained in this test.
分 类 号:TP391.4[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.192