Compare Cohen Sutherland and Cyrus beck line clipping algorithms, with suitable example of each. In Cyrus Beck line clipping algorithm, how will you determine whether the point of intersection between line segment and clipping window is Potentially Entering (PE) or Potentially Leaving (PL). Derive the expression for the parameter (t) with respect to ith edge and the line segment PQ (line to be clipped) in the context of Cyber Beck line clipping algorithm.
Cohen-Sutherland and Cyrus-Beck are two commonly used line clipping algorithms. Let's compare them briefly:
- Cohen-Sutherland algorithm: The Cohen-Sutherland algorithm is an efficient line-clipping algorithm used to remove portions of a line that are outside a given window. It uses a binary code to identify where a line is in relation to a window, and then eliminates portions of the line that are outside of the window. The code identifies which of the four regions the line endpoints are in with respect to the clip rectangle. This algorithm can handle only rectangular clipping windows.
Example: Consider a line segment PQ that intersects a rectangular clipping window with corners (50, 50) and (150, 150). The endpoints of the line segment are (25, 75) and (200, 175). Using Cohen-Sutherland algorithm, we can clip the line to lie within the clipping window as shown below.

- Cyrus-Beck algorithm: The Cyrus-Beck algorithm is another line-clipping algorithm that can handle arbitrary convex polygons as clipping regions. The algorithm uses parametric equations to determine the intersection points between the line segment and each edge of the clipping polygon. It then determines whether the intersection point is a potentially entering (PE) or potentially leaving (PL) point with respect to the clipping polygon. Finally, it uses these points to clip the line segment.
Example: Consider a line segment PQ that intersects a convex clipping polygon as shown below.

To determine whether an intersection point is a potentially entering (PE) or potentially leaving (PL) point, we need to calculate the dot product of the line segment vector PQ and the normal vector N of the clipping edge i. The sign of the dot product
______ _____ _______ _________ _______ _______.
________ ___ _____ _____ __________ ______ ________ ___ _______.
_____ __________ _____ __________ _____ ______ ______ ___ _________ _____ ____ ______.
______ ___ ___ ___ ______ ___ __________ _______.
______ _____ _____ ________ _______ ______ ___.
_____ _______ ____ __________ ______ __________ ___.
_______ ___ ______ __________ ____.
____ ______ _________ ________ ______ _______ _________ ____ __________ __________ ____ _______.
__________ _______ ___ _____ ____ _____ ________ ___ ______ ________ ______ ______.
________ _______ __________ ____ ____ _________ _____ ________.
_______ _______ _________ ______ __________ ___ ________ ___.
__________ _________ ___ _____ ______ ______ _______ ____ _________.
_______ _______ ______ ____ __________ __________ ______ ________ _________ _____ ___.
____ ______ ____ ______ ________.
_______ __________ _______ _______ __________ ________ ____ _____ _______ ___ ______.
__________ _____ _________ ________ ____ _________ __________ __________.
______ __________ ___ ____ _____ ______ _____.
___ ________ _______ ________ ______ _________.
__________ _________ ________ ______ _______ _______ ___ ________.
____ __________ __________ ______ _______ _____ __________ ______ _____.
___ ______ ____ _______ ____ __________ __________ ______ _________ ____ ____ ____.
___ ___ _________ _________ ___.
__________ ________ __________ ___ ____.
________ ___ ______ ___ _________ ________.
_______ _____ _____ ___ ______ __________ ________ ____ _____ ________ _____.
_____ ______ ______ ___ ______ _____ ____.
_____ ____ ________ ______ ____ _________ ___ _____.
__________ ______ _________ ___ _____ __________ _____ ____ ____ ____.
______ ________ ______ _______ ____ _________ ___ _____ __________ __________ ________ ___.
______ _________ ____ _______ ______ __________ _____ __________.
_______ _________ _______ _______ ___ _________ ____ _________ __________.
________ _____ ___ __________ __________ _______ ________ ______ ________.
___ ______ ________ _________ ____ _______ _____ ___ ___ ______.
_______ ________ _____ _____ ________ _______.
___ ___ ______ __________ ____ _____ ________ ____.
______ _______ _____ _______ __________ _______ __________.
____ ___ _______ ____ ______ ____ ________ ___.
__________ ______ _______ ____ __________ _____ ________ ___ __________ _______.
____ ____ _______ ______ _______ _______ __________ ___.
___ ________ ____ _______ ___ ______ __________ __________ ______.
__________ ____ ____ _________ _______ ________ _________ _______ ________.
___ _____ ___ __________ ___ __________ ____ ______ _________.
_________ ___ __________ ____ ____.
_____ ______ __________ ___ __________ __________ __________ _________ _____ ______.
________ ______ _____ ___ ________ ___ ____ __________ _______ ____ ___.
________ ___ ___ ________ ________ ______ __________ __________ ______.
__________ _______ _______ _______ _______ ________ ______ ___.
______ ________ _______ __________ _____ _________ _______ _______ _____ ______ _________ ______.
________ _______ ______ _____ ___.
___ __________ _________ _____ ____ ______ _____ ___ ________ ______ ________.
_______ ___ _____ _______ _________ ____ __________ ________ ______.
___ __________ _____ ________ ___.
__________ ______ ________ __________ ________ ____ ________ ________ ___ _______ _______ __________.
_______ ________ ________ _______ ____ _____ _______ _________ ______ ___ ____ _____.
________ ____ ___ _______ ________ _______ ______ ___ _________ _____.
___ ________ ________ _________ __________.
_________ __________ _____ ______ _______ __________ _____ __________.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required