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

 

词条 Cyrus–Beck algorithm
释义

  1. Notes

  2. See also

  3. References

  4. External links

The Cyrus–Beck algorithm is a generalized line clipping algorithm. It was designed to be more efficient than the Cohen–Sutherland algorithm, which uses repetitive clipping.[1] Cyrus–Beck is a general algorithm and can be used with a convex polygon clipping window, unlike Sutherland–Cohen, which can be used only on a rectangular clipping area.

Here the parametric equation of a line in the view plane is

where .

Now to find the intersection point with the clipping window, we calculate the value of the dot product. Let pE be a point on the clipping plane E.

Calculate :

if < 0, vector pointed towards interior;

if = 0, vector pointed parallel to plane containing p;

if > 0, vector pointed away from interior.

Here n stands for normal of the current clipping plane (pointed away from interior).

By this we select the point of intersection of line and clipping window where (dot product is 0) and hence clip the line.

Notes

1. ^"Clipping" (presentation).

See also

Algorithms used for the same purpose:

  • Cohen–Sutherland algorithm
  • Liang–Barsky algorithm
  • Nicholl–Lee–Nicholl algorithm
  • Fast clipping

References in other media:

  • Uprising

References

  • Mike Cyrus, Jay Beck. "Generalized two- and three-dimensional clipping". Computers & Graphics, 1978: 23–28.
  • James D. Foley. [https://books.google.com/books?id=-4ngT05gmAQC Computer graphics: principles and practice]. Addison-Wesley Professional, 1996. p. 117.

External links

  • https://web.archive.org/web/20101203041134/http://cs1.bradley.edu/public/jcm/cs535CyrusBeck.html
  • https://web.archive.org/web/20110725233122/http://softsurfer.com/Archive/algorithm_0111/algorithm_0111.htm
{{DEFAULTSORT:Cyrus-Beck algorithm}}{{DEFAULTSORT:Cyrus-Beck algorithm}}{{compu-graphics-stub}}

1 : Line clipping algorithms

随便看

 

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

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/22 14:40:47