请输入您要查询的百科知识:

 

词条 Nicholl–Lee–Nicholl algorithm
释义

  1. Description

  2. See also

  3. References

The Nicholl–Lee–Nicholl algorithm is a fast line clipping algorithm that reduces the chances of clipping a single line segment multiple times, as may happen in the Cohen-Sutherland algorithm.

Description

Using the Nicholl–Lee–Nicholl algorithm, the area around the clipping window is divided into a number of different areas, depending on the position of the initial point of the line to be clipped. This initial point should be in three predetermined areas; thus the line may have to be translated and/or rotated to bring it into the desired region. The line segment may then be re-translated and/or re-rotated to bring it to the original position. After that, straight line segments are drawn from the line end point, passing through the corners of the clipping window. These areas are then designated as L, LT, LB, or TR, depending on the location of the initial point. Then the other end point of the line is checked against these areas. If a line starts in the L area and finishes in the LT area then the algorithm concludes that the line should be clipped at xw (max). Thus the number of clipping points is reduced to one, compared to other algorithms that may require two or more clipping

See also

Algorithms used for the same purpose:

  • Liang–Barsky algorithm
  • Cyrus–Beck algorithm
  • Fast clipping

References

  • {{cite journal | journal = SIGGRAPH '87 | title = An efficient new algorithm for 2-D line clipping: Its development and analysis |author1=Tina M. Nicholl |author2=D. T. Lee |author3=Robin A. Nicholl | year = 1987 | url = http://portal.acm.org/citation.cfm?id=37432 | pages = 253–262 }}
{{DEFAULTSORT:Nicholl-Lee-Nicholl}}{{Compu-graphics-stub}}

1 : Line clipping algorithms

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/21 8:42:31