SlideShare ist ein Scribd-Unternehmen logo
1 von 30
2D CLIPPING ,[object Object],[object Object],[object Object],[object Object]
CLIPPING (Cont…) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Types of clipping ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
1.POINT CLIPPING  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
2.Curve clipping ,[object Object],[object Object],[object Object],[object Object],[object Object]
Curve clipping (cont) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
3.TEXT CLIPPING ,[object Object],[object Object],[object Object],[object Object],[object Object]
TEXT CLIPPING (cont) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
TEXT CLIPPING (cont)
TEXT CLIPPING (cont) ,[object Object],[object Object],[object Object],TEXT CLIPPING (cont)
4.EXTERIOR CLIPPING ,[object Object],[object Object],[object Object]
5.Line Clipping ,[object Object],wy max wy min wx min wx max Window P 1 P 2 P 3 P 6 P 5 P 7 P 10 P 9 P 4 P 8
Line clipping procedure ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Point Clipping ,[object Object],[object Object],[object Object],wy max wy min wx min wx max Window P 1 P 2 P 5 P 7 P 10 P 9 P 4 P 8 Clipped Points Within the Window are Not Clipped Clipped Clipped Clipped
Line Clipping ,[object Object],Situation Solution Example Both end-points inside the window Don’t clip One end-point inside the window, one outside Must clip Both end-points outside the window Clipping decision should be made appropriately
Line clipping – parametric test ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Cohen-Sutherland Clipping Algorithm ,[object Object],[object Object],[object Object],[object Object]
Cohen-Sutherland: World Division ,[object Object],[object Object],[object Object],1001 1000 1010 0001 0000 Window 0010 0101 0100 0110 above below right left 3 2 1 0 Region Code
Cohen-Sutherland: Labelling ,[object Object],wy max wy min wx min wx max Window P 3  [0001] P 6  [0000] P 5  [0000] P 7  [0001] P 10  [0100] P 9  [0000] P 4  [1000] P 8  [0010] P 12  [0010] P 11  [1010] P 13  [0101] P 14  [0110]
Cohen-Sutherland: Lines In The Window Lines completely contained within the window boundaries have region code [0000] for both end-points so are not clipped wy max wy min wx min wx max Window P 3  [0001] P 6  [0000] P 5  [0000] P 7  [0001] P 10  [0100] P 9  [0000] P 4  [1000] P 8  [0010] P 12  [0010] P 11  [1010] P 13  [0101] P 14  [0110]
Cohen-Sutherland: Lines Outside The Window ,[object Object],[object Object],wy max wy min wx min wx max Window P 3  [0001] P 6  [0000] P 5  [0000] P 7  [0001] P 10  [0100] P 9  [0000] P 4  [1000] P 8  [0010] P 12  [0010] P 11  [1010] P 13  [0101] P 14  [0110]
Cohen-Sutherland: Other Lines ,[object Object],[object Object],[object Object],[object Object]
Cohen-Sutherland: Other Lines (cont…) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Cohen-Sutherland Examples ,[object Object],[object Object],[object Object],[object Object],[object Object],wy max wy min wx min wx max Window P 10  [0100] P 9  [0000] P 10 ’ [0000] P 9  [0000]
Cohen-Sutherland Examples (cont…) ,[object Object],[object Object],[object Object],[object Object],wy max wy min wx min wx max Window P 4 ’ [1001] P 3  [0001] P 4  [1000] P 3  [0001]
Cohen-Sutherland Examples (cont…) ,[object Object],[object Object],[object Object],wy max wy min wx min wx max Window P 7 ’ [0000] P 7  [0001] P 8  [0010] P 8 ’ [0000]
Cohen-Sutherland Examples (cont…) ,[object Object],[object Object],[object Object],[object Object],wy max wy min wx min wx max Window P 7 ’ [0000] P 7  [0001] P 8  [0010] P 8 ’ [0000]
Calculating Line Intersections ,[object Object],[object Object],[object Object],[object Object],[object Object]
Calculating Line Intersections (cont…) ,[object Object],[object Object],[object Object],[object Object]
Liang-Barsky line clipping ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Weitere ähnliche Inhalte

Was ist angesagt?

Coordinate transformation
Coordinate transformationCoordinate transformation
Coordinate transformation
Mohd Arif
 
The sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithmThe sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithm
Mani Kanth
 
Viewing transformation
Viewing transformationViewing transformation
Viewing transformation
Udayan Gupta
 
Polygon clipping
Polygon clippingPolygon clipping
Polygon clipping
Mohd Arif
 
Hidden surface removal
Hidden surface removalHidden surface removal
Hidden surface removal
Ankit Garg
 
2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformations
Mohd Arif
 

Was ist angesagt? (20)

2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphics
 
2D Transformations(Computer Graphics)
2D Transformations(Computer Graphics)2D Transformations(Computer Graphics)
2D Transformations(Computer Graphics)
 
Coordinate transformation
Coordinate transformationCoordinate transformation
Coordinate transformation
 
Weiler atherton
Weiler athertonWeiler atherton
Weiler atherton
 
The sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithmThe sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithm
 
Viewing transformation
Viewing transformationViewing transformation
Viewing transformation
 
Polygon clipping
Polygon clippingPolygon clipping
Polygon clipping
 
3 d viewing projection
3 d viewing  projection3 d viewing  projection
3 d viewing projection
 
Windows to viewport transformation
Windows to viewport transformationWindows to viewport transformation
Windows to viewport transformation
 
Clipping
ClippingClipping
Clipping
 
Clipping in Computer Graphics
Clipping in Computer GraphicsClipping in Computer Graphics
Clipping in Computer Graphics
 
Windowing clipping
Windowing   clippingWindowing   clipping
Windowing clipping
 
visible surface detection
visible surface detectionvisible surface detection
visible surface detection
 
Hidden surface removal
Hidden surface removalHidden surface removal
Hidden surface removal
 
3D Transformation in Computer Graphics
3D Transformation in Computer Graphics3D Transformation in Computer Graphics
3D Transformation in Computer Graphics
 
2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformations
 
Bresenham's line drawing algorithm
Bresenham's line drawing algorithmBresenham's line drawing algorithm
Bresenham's line drawing algorithm
 
2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)
 
3D Transformation
3D Transformation3D Transformation
3D Transformation
 
BRESENHAM’S LINE DRAWING ALGORITHM
BRESENHAM’S  LINE DRAWING ALGORITHMBRESENHAM’S  LINE DRAWING ALGORITHM
BRESENHAM’S LINE DRAWING ALGORITHM
 

Ähnlich wie Lecture 2d point,curve,text,line clipping

Ähnlich wie Lecture 2d point,curve,text,line clipping (20)

line clipping
line clipping line clipping
line clipping
 
Clipping
ClippingClipping
Clipping
 
Clipping
ClippingClipping
Clipping
 
Unit 4 notes
Unit 4 notesUnit 4 notes
Unit 4 notes
 
lecture8 clipping
lecture8 clippinglecture8 clipping
lecture8 clipping
 
kgv.pptx
kgv.pptxkgv.pptx
kgv.pptx
 
ohu.pptx
ohu.pptxohu.pptx
ohu.pptx
 
Lect 5 2d clipping
Lect 5 2d clippingLect 5 2d clipping
Lect 5 2d clipping
 
Clipping
ClippingClipping
Clipping
 
Unit-IV Windowing and Clipping.pdf
Unit-IV Windowing and Clipping.pdfUnit-IV Windowing and Clipping.pdf
Unit-IV Windowing and Clipping.pdf
 
ibuib.pptx
ibuib.pptxibuib.pptx
ibuib.pptx
 
Clipping ( Cohen-Sutherland Algorithm )
Clipping ( Cohen-Sutherland Algorithm )Clipping ( Cohen-Sutherland Algorithm )
Clipping ( Cohen-Sutherland Algorithm )
 
CAD - Unit-1 (Fundamentals of Computer Graphics)
CAD - Unit-1 (Fundamentals of Computer Graphics)CAD - Unit-1 (Fundamentals of Computer Graphics)
CAD - Unit-1 (Fundamentals of Computer Graphics)
 
99995327.ppt
99995327.ppt99995327.ppt
99995327.ppt
 
Clipping computer graphics
Clipping  computer graphicsClipping  computer graphics
Clipping computer graphics
 
Clipping
ClippingClipping
Clipping
 
Sutherlands Cohen and Hodgeman algorithms
Sutherlands Cohen and Hodgeman algorithmsSutherlands Cohen and Hodgeman algorithms
Sutherlands Cohen and Hodgeman algorithms
 
Clipping
ClippingClipping
Clipping
 
Unit2- line clipping.pptx
Unit2- line clipping.pptxUnit2- line clipping.pptx
Unit2- line clipping.pptx
 
Unit 3
Unit 3Unit 3
Unit 3
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 

Lecture 2d point,curve,text,line clipping

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20. Cohen-Sutherland: Lines In The Window Lines completely contained within the window boundaries have region code [0000] for both end-points so are not clipped wy max wy min wx min wx max Window P 3 [0001] P 6 [0000] P 5 [0000] P 7 [0001] P 10 [0100] P 9 [0000] P 4 [1000] P 8 [0010] P 12 [0010] P 11 [1010] P 13 [0101] P 14 [0110]
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.