首页> 外文期刊>Intelligent Information Management >The Line Clipping Algorithm Basing on Affine Transformation
【24h】

The Line Clipping Algorithm Basing on Affine Transformation

机译:基于仿射变换的剪线算法

获取原文
       

摘要

A new algorithm for clipping line segments by a rectangular window on rectangular coordinate system is presented in this paper. The algorithm is very different to the other line clipping algorithms. For the line segments that cannot be identified as completely inside or outside the window by simple testings, this algorithm applies affine transformations (the shearing transformations) to the line segments and the window, and changes the slopes of the line segments and the shape of the window. Thus, it is clear for the line segment to be outside or inside of the window. If the line segments intersect the window, the algorithm immediately (no solving equations) gets the intersection points. Having applied the inverse transformations to the intersection points, the algorithm has the final results. The algorithm is successful to avoid the complex classifications and computations. Besides, the algorithm is effective to simplify the processes of finding the intersection points. Comparing to some classical algorithms, the algorithm of this paper is faster for clipping line segments and more efficient for calculations.
机译:提出了一种在直角坐标系上用矩形窗口裁剪线段的新算法。该算法与其他换行算法非常不同。对于通过简单测试无法识别为完全在窗口内部或外部的线段,此算法将仿射变换(剪切变换)应用于线段和窗口,并更改线段的斜率和形状窗口。因此,很明显,线段位于窗口的外部或内部。如果线段与窗口相交,则算法立即(无求解方程)获取相交点。将逆变换应用于交点后,该算法将获得最终结果。该算法成功避免了复杂的分类和计算。此外,该算法有效地简化了求交点的过程。与某些经典算法相比,本文算法对线段的剪切速度更快,计算效率更高。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号