Clipping Lines. Lecture 7 Wed, Sep 10, 2003. The Graphics Pipeline. From time to time we will discuss the graphics pipeline . The graphics pipeline is the sequence of operations that are performed on primitives to render them on the screen as collections of colored pixels.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Wed, Sep 10, 2003
xminThe Cohen-Sutherland Clipping Algorithm
if (p.x < xmin)
c = 1 << 3;
q.y – p.y
r.y – p.y
xmin – p.x
q.x – p.xThe Cohen-Sutherland Clipping Algorithm
(r.y – p.y)/(xmin – p.x) = (q.y – p.y)/(q.x – p.x)
r.y = p.y + (xmin – p.x)(q.y – p.y)/(q.x – p.x)