Advanced Search
Li Weiqing. Bisearch-Based Line Clipping Algorithm Against a Convex Polygonal WindowJ. Journal of Computer-Aided Design & Computer Graphics, 2005, 17(5): 962-965.
Citation: Li Weiqing. Bisearch-Based Line Clipping Algorithm Against a Convex Polygonal WindowJ. Journal of Computer-Aided Design & Computer Graphics, 2005, 17(5): 962-965.

Bisearch-Based Line Clipping Algorithm Against a Convex Polygonal Window

  • A fast line clipping algorithm against a convex polygonal window based on Skala algorithm is presented in this paper. By the algorithm, the clipping window is first divided into four polylines, then the clip of a line against the window is performed by determination of the intersection of the line with each of the four polylines according to the positional relationships between the two end points of each polyline and the line to be clipped. A bisearch method is used to quickly find out the window's edges that intersect the line to be clipped. The algorithm uses less multiplication and division operations and has higher execution speed, in comparison with the others like Cyrus-Beck algorithm and Skala algorithm.
  • loading

Catalog

    Turn off MathJax
    Article Contents

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return