260 likes | 516 Views
CS580 Computer Graphics. Clipping & Windowing #2. Sung Yong Shin Dept. of Computer Science KAIST. Contents. 1. Cyrus-Beck Algorithm 1.1 Preliminary 1.2 Basic Idea 1.3 Lian and Barsky’s Algorithm - revisited 2. 3D Clipping. 1. Cyrus-Beck Algorithm. 1.1 Preliminaries.
E N D
CS580 Computer Graphics Clipping & Windowing #2 Sung Yong Shin Dept. of Computer Science KAIST
Contents 1. Cyrus-Beck Algorithm 1.1 Preliminary 1.2 Basic Idea 1.3 Lian and Barsky’s Algorithm - revisited 2. 3D Clipping
1. Cyrus-Beck Algorithm 1.1 Preliminaries
Cyrus-Beck Algorithm(Cont’) What is this ?
Cyrus-Beck Algorithm(Cont’) Recall Liang and Barsky’s algorithm !!!
Cyrus-Beck Algorithm(Cont’) Well, …... now, look at this !!!
Basic Assumption ? The clipping polygon is required to be convex !!! What can you do with a non-convex clipping polygon ?
1.3 Liang and Barsky’s Algorithm - revisited Basic assumption on the window
Liang and Barsky’s Algorithm – revisited (Cont’) Liang and Barsky’s algorithm is a special case of Cyrus and Beck’s !!! Is Cyrus and Beck’s algorithm applicable to 3D-clipping ? Yes !!! why ?
2. 3D-Clipping Clipping Volumes Parallelepiped Truncated Pyramid
Parallelepiped top yon left right bottom hither Cohen-Sutherland’s & Midpoint Subdivision Algorithms can trivially be extended for 3D-Clipping !!!
Truncated Pyramid H.W. Extend Cohen-Sutherland’s Algorithm for a Truncated Pyramidal Clipping Voume
Non-Convex Polyhedron Convex Polyhedron Cyrus-Beck Non-Convex Polyhedron ?