【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)算法用于将线段剪切到平面中的矩形窗口上(Computer Graphics 21,4 pp 253-262)在最小和最大比较数以及使用的谓词数。提出了一种新算法,该算法不使用谓词,而是推测性地计算相交。令人惊讶的是,这种方法不仅导致算法简单得多,而且在很多情况下(包括最坏的情况),所需的操作也更少。事实证明,新算法永远不会比最优算法花费更多的运算。实验结果表明,新算法比长期建立的,广为人知的算法快80%至560%。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号