# lec5 - Clipping Computer Graphics Lecture 5 Viewing...

This preview shows pages 1–10. Sign up to view the full content.

Clipping Computer Graphics Lecture 5

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Viewing pipeline window – a world-coordinate area selected for display Defines what is to be viewed viewport – an area on a display device to which a window in mapped Defines where it is to be displayed Often, windows and viewports are rectangles in standard position with rectangle edges parallel to the coordinate axes
Clipping clip-window - the region against which an object clipped clipping algorithm – any procedure that identifies those points of a picture that are either inside or outside of a specified region of space

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Clipping (cont) Example:
Main Clipping Algorithms Point clipping Line clipping (straight segment) Area clipping (polygons)

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Point Clipping Assuming that the clip window is a rectangle in standard position, we save a point p=(x,y) for display if the following inequalities are satisfied: max min max min yw y yw xw x xw
Line Clipping Example of line clipping algorithm result

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Line Clipping (cont) For a given segment perform ‘inside outside’ tests: Test whether it lies completely inside the clipping window Test whether in lies completely outside the clipping window If any of the previous perform intersection calculations with one or more clipping boundaries
Line Clipping (cont) For line starting at (x1,y1) and ending at (x2,y2). The parametric representation is: x=x1+u(x2-x1); Y=y1+u(y2-y1); If the value of ‘u’ for an intersection with

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 26

lec5 - Clipping Computer Graphics Lecture 5 Viewing...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online