1.06k likes | 1.44k Views
Polygon Clipping. CS5600 Computer Graphics Rich Riesenfeld Spring 2006. Lecture Set 5. Ex: Simple Convex. Ex: Multiple Components. Nonconvex with Many Edges. Polygons : Before Clipping. Top Clip Boundary. Polygons: Clip on Top. Right Clip Boundary. Polygons: Clip on Right.
E N D
Polygon Clipping CS5600 Computer Graphics Rich Riesenfeld Spring 2006 Lecture Set 5
Ex: Simple Convex CS5600
Ex: Multiple Components CS5600
Nonconvex with Many Edges CS5600
Polygons : Before Clipping CS5600
Top Clip Boundary Polygons: Clip on Top CS5600
Right Clip Boundary Polygons: Clip on Right CS5600
Bottom Clip Boundary Polygons: Clip on Bottom CS5600
LeftClip Boundary Polygons: Clip on Left CS5600
Polygons: Clipped Polygon CS5600
Begin Animated Recap CS5600
Polygons: Before Clipping CS5600
Top Clip Boundary Polygons: Clip on Top CS5600
Top Clip Boundary Polygons: Clip on Top CS5600
Right Clip Boundary Polygons: Clip on Right CS5600
Right Clip Boundary Polygons: Clip on Right CS5600
Bottom Clip Boundary Polygons: Clip on Bottom CS5600
Bottom Clip Boundary Polygons: Clip on Bottom CS5600
LeftClip Boundary Polygons: Clip on left CS5600
LeftClip Boundary Polygons: Clip on left CS5600
Polygons: Fully Clipped CS5600
Polygons: Clip on Left Left Clip Boundary CS5600
Polygons: Clipped Polygon CS5600
End Animated Recap CS5600
Polygons: Case 1 IN OUT S Polygon being clipped Clip boundary P: output CS5600
Case 1: S&Pboth IN Action: OutputP
Polygons: Case 2 IN OUT P S i output CS5600
Case 2: SIN; POUT Action: Outputi (Swas already output under Case 1)
Polygons: Case 3 IN OUT P S (no output) CS5600
Case 3: S&Pboth OUT Action: None
Polygons: Case 4 P: second output IN OUT S i: first output CS5600
Case 4: SOUT; PIN Action: Outputi and P
Action:OutputP Case 1:S&Pboth IN Case 2: SIN; POUT Action:Outputi (Salready output under Case 1) Case 4:SOUT;PIN Case 3: S & P both OUT Action:OutputiandP Action:None
Hodgeman-Sutherland CS5600
Hodgeman-Sutherland CS5600
Hodgeman-Sutherland: Top CS5600
Hodgeman-Sutherland: Top CS5600
Hodgeman-Sutherland: Bottom CS5600
Hodgeman-Sutherland: Bottom CS5600
Hodgeman-Sutherland: Bottom CS5600
Hodgeman-Sutherland: Right CS5600
Hodgeman-Sutherland: Right This case is trivial: donothing CS5600
Hodgeman-Sutherland: Left CS5600
Hodgeman-Sutherland: Left CS5600
Hodgeman-Sutherland: Left CS5600
Hodgeman-Sutherland: Done CS5600
Begin Animated Recap CS5600
Top Done