Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Point Clipping - Computer Graphics - Lecture Slides, Slides of Computer Graphics

Point Clipping, Line Clipping, Trivial Accept, Trivial Reject, Intersecting Lines, Brute Force Approach, Cohen Sutherland, Line Clipping Algorithm, Liang Barsky Algorithm terms are which we learned in this lecture.

Typology: Slides

2011/2012

Uploaded on 11/09/2012

bacha
bacha 🇮🇳

4.3

(41)

215 documents

1 / 86

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Computer
Graphics
Lecture 27
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56

Partial preview of the text

Download Point Clipping - Computer Graphics - Lecture Slides and more Slides Computer Graphics in PDF only on Docsity!

Computer

Graphics

Lecture 27

Restricting the effect of

graphics primitives to a

sub-region of the canvas

Protecting other portions

of the canvas

CLIPPING

x (^) min <= x <= x (^) max

y (^) min <= y <= y (^) max

Point Clipping

Intersect that line with each of the four clip rectangle edges. if so, the line cuts the clip rectangle and is partially inside.

The Brute Force

Approach

More efficient;

Performs initial tests on a

line to determine whether

intersection calculations

can be avoided.

Cohen Sutherland

L ine C lipping A lgorithm

Faster line clippers based on analysis of the parametric equation of a line segment:

Liang-Barsky

Algorithm

More efficient; intersection calculations are reduced.

Conclusion

Polygon clipping - open polygons.

Example

Weiler-Atherton clipping algorithm

Weiler-Atherton clipping algorithm clips any polygon against any clip polygon. The polygons may even have holes.

Four Cases of Polygon Clipping Against One Edge

Case 2 : Exit visible region -

save the intersection point

Case 1 : Wholly inside

visible region save endpoint