fbpx
Wikipedia

Cyrus–Beck algorithm

In computer graphics, the Cyrus–Beck algorithm is a generalized algorithm for line clipping. 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 Cohen-Sutherland, which can be used only on a rectangular clipping area.

Cyrus–Beck algorithm

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 be a point on the clipping plane .

Calculate :

  • if < 0, vector pointed towards interior;
  • if = 0, vector pointed parallel to plane containing ;
  • if > 0, vector pointed away from interior.

Here 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 edit

  1. ^ "Clipping" (presentation).

See also edit

Algorithms used for the same purpose:

References in other media:

References edit

  • Mike Cyrus, Jay Beck. "Generalized two- and three-dimensional clipping". Computers & Graphics, 1978: 23–28.
  • James D. Foley. Computer graphics: principles and practice. Addison-Wesley Professional, 1996. p. 117.

External links edit


cyrus, beck, algorithm, computer, graphics, generalized, algorithm, line, clipping, designed, more, efficient, than, cohen, sutherland, algorithm, which, uses, repetitive, clipping, cyrus, beck, general, algorithm, used, with, convex, polygon, clipping, window. In computer graphics the Cyrus Beck algorithm is a generalized algorithm for line clipping 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 Cohen Sutherland which can be used only on a rectangular clipping area Cyrus Beck algorithmHere the parametric equation of a line in the view plane isp t tp1 1 t p0 displaystyle mathbf p t t mathbf p 1 1 t mathbf p 0 where 0 t 1 displaystyle 0 leq t leq 1 Now to find the intersection point with the clipping window we calculate the value of the dot product Let pE displaystyle mathbf p E be a point on the clipping plane E displaystyle E Calculate n p t pE displaystyle mathbf n cdot mathbf p t mathbf p E if lt 0 vector pointed towards interior if 0 vector pointed parallel to plane containing p displaystyle p if gt 0 vector pointed away from interior Here n displaystyle mathbf 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 Contents 1 Notes 2 See also 3 References 4 External linksNotes edit Clipping presentation See also editAlgorithms used for the same purpose Cohen Sutherland algorithm Liang Barsky algorithm Nicholl Lee Nicholl algorithm Fast clippingReferences in other media Tron UprisingReferences editMike Cyrus Jay Beck Generalized two and three dimensional clipping Computers amp Graphics 1978 23 28 James D Foley Computer graphics principles and practice Addison Wesley Professional 1996 p 117 External links edithttps 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 nbsp This computer graphics related article is a stub You can help Wikipedia by expanding it vte Retrieved from https en wikipedia org w index php title Cyrus Beck algorithm amp oldid 1100467542, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.