Clipping identifies portions of a scene outside a specified clip window region. There are different types of clipping for different graphics elements. The Cohen-Sutherland algorithm assigns a binary code to line endpoints based on their position relative to the clip window boundaries, and uses logical AND operations on the codes to determine if a line needs clipping or can be fully accepted or rejected. It iteratively clips portions of a line outside the window until the line is fully processed.
Related topics: