A fast two-dimensional line clipping algorithm via line encoding
暂无分享,去创建一个
Abstract Clipping of lines is an important operation in most graphics applications. Two main types of line clipping algorithms have been proposed, namely the encoding approach (with the Cohen-Sutherland algorithm as a representative) and the parametric approach (with the Liang-Barsky and the Cyrus-Beck algorithms as representatives.) The technique described in this paper is a new encoding approach. Unlike the Cohen-Sutherland algorithm, which encodes the end points of a line, the line is encoded. Based on the line code, appropriate clipping actions are performed. Experimental results demonstrate that the proposed algorithm outperforms the Cohen-Sutherland, the Liang-Barsky and the Cyrus-Beck algorithms.
[1] James D. Foley,et al. Fundamentals of interactive computer graphics , 1982 .
[2] Jay Beck,et al. Generalized two- and three-dimensional clipping , 1978, Comput. Graph..
[3] Brian A. Barsky,et al. A New Concept and Method for Line Clipping , 1984, TOGS.