首页> 外文期刊>Journal of graphics tools >An Alternative Algorithm for Line Clipping
【24h】

An Alternative Algorithm for Line Clipping

机译:换行的另一种算法

获取原文
获取原文并翻译 | 示例
       

摘要

The development, testing, and validation of the Nicholl-Lee-Nicholl algorithm are difficult, and when it is extended to 3D, the number of cases rockets, making it even harder. This article presents an alternative algorithm for line clipping and its immediate extension to 3D. The algorithm is simple, fast, and numerically correct. It uses a trivial test for rejecting lines that are completely beyond the boundaries of the clipping region. If the trivial test fails, then it splits the clipping problem into two calls to a routine that returns a Boolean value. If at least one of the calls returns false, then no portion of the line is inside the clipping region. The algorithm is compared with the Cohen-Sutherland(CS), Liang-Barsky(LB), and Nicholl-Lee-Nicholl(NLN) algorithms with respect to execution time on a large number of random lines, and it is found that its performance is better than the CS and LB algorithms. The pseudocode of the 3D algorithm is available in Appendix A.
机译:Nicholl-Lee-Nicholl算法的开发,测试和验证是困难的,当将其扩展到3D时,案例数量猛增,从而变得更加困难。本文介绍了一种用于剪线的替代算法,并将其直接扩展到3D。该算法简单,快速且在数值上正确。它使用微不足道的测试来剔除完全超出裁剪区域边界的线。如果微不足道的测试失败,则它将裁剪问题分成两次调用,返回一个返回布尔值的例程。如果至少有一个调用返回false,则该行的任何部分都不在剪切区域内。将算法与Cohen-Sutherland(CS),Liang-Barsky(LB)和Nicholl-Lee-Nicholl(NLN)算法在大量随机行上的执行时间进行比较,发现其性能比CS和LB算法要好。 3D算法的伪代码可在附录A中找到。

著录项

  • 来源
    《Journal of graphics tools》 |2012年第1期|p.12-24|共13页
  • 作者

    Bimal Kumar Ray;

  • 作者单位

    School of Information Technology & Engineering, VIT University, Vellore, 632014 India;

  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号