【24h】

A Speculative Approach to Clipping Line Segments

机译:剪切线段的推测方法

获取原文

摘要

The Nicholl-Lee-Nicholl (NLN) algorithm for clipping line segments against a rectangular window in the plane (Computer Graphics 21,4 pp 253–262) was proved to be optimal recently in terms of the minimum and maximum number of comparisons and the number of predicates used. A new algorithm is proposed that does not use predicates, but calculates intersections speculatively. Surprisingly, this approach not only leads to a much simpler algorithm, but also takes fewer operations in many cases, including the worst case. It is proved that the new algorithm never takes more operations than the optimal algorithm. Experimental results demonstrate that the new algorithm is 80% to 560% faster than long-established, widely known algorithms.
机译:用于剪切线段的Nicholl-Lee-Nicholl(NLN)判断平面中的矩形窗口(计算机图形学21,4pp 253-262),最近在最小和最大比较数量和最大数量的比较方面是最佳的使用的谓词数量。提出了一种不使用谓词的新算法,但是通过授权地计算交叉口。令人惊讶的是,这种方法不仅导致了更简单的算法,而且在许多情况下也需要更少的操作,包括最坏的情况。事实证明,新算法永远不会采用比最佳算法更多的操作。实验结果表明,新的算法比长期熟悉的广泛综合的算法快80%至560%。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号