SlideShare a Scribd company logo
1 of 32
.
COMPUTER AIDED DESIGN (CAD)
ME8691 COMPUTER AIDED DESIGN AND
MANUFACTURING
PRESENTED BY,
S.VIGNESH, ME
ASSISTANT PROFESSOR,
DEPARTMENT OF MECHANICAL ENGINEERING,
SIR ISSAC NEWTON COLLEGE OF ENGINEERING AND TECHNOLOGY,
NAGAPATTINAMBY
ME8691 COMPUTER AIDED DESIGN AND
MANUFACTURING
OBJECTIVES:
To provide an overview of how computers are being used in mechanical
component design
To understand the application of computers in various aspects of
Manufacturing viz., Design, Proper planning, Manufacturing cost, Layout &
Material Handling system.
UNIT I INTRODUCTION
Product cycle- Design process- sequential and concurrent engineering-
Computer aided design – CAD system architecture- Computer graphics –
co-ordinate systems- 2D and 3D transformations- homogeneous coordinates
- Line drawing -Clipping- viewing transformation-Brief introduction to CAD
and CAM – Manufacturing Planning, Manufacturing control- Introduction to
CAD/CAM –CAD/CAM concepts ––Types of production - Manufacturing
models and Metrics – Mathematical models of Production Performance
COURSE OUTCOMES:
Explain the 2D and 3D transformations, clipping algorithm, Manufacturing
models and Metrics
Explain the fundamentals of parametric curves, surfaces and Solids
Summarize the different types of Standard systems used in CAD
Apply NC & CNC programming concepts to develop part programme for
Lathe & Milling Machines
Summarize the different types of techniques used in Cellular Manufacturing
and FMS
CAD
• CAD also known as Computer Aided
Drafting/Design.
• There are 3 different types of CAD (2D, 2.5D
and 3D).
• The software is used to create and design
models of these types and test them.
Uses of CAD
CAD is used to design a variety of different products for
a variety of fields such as
• Architecture
• Electronics
• Automotive engineering
• Industrial Design
• Machinery
• Visual Art
• Medical Design
The Product Cycle and CAD/CAM
• The product begin with a need which is
identified based on customers and market
demands.
• In order to establish the scope and definition of
CAD/CAM in an engineering environment and
identify existing and future related tools, a study of a
typical product cycle is necessary.
5
The Manufacturing Process
The Design Process
Synthesis
Analysis The CAD Process
The CAM Process
Design
needs
Design
definitions,
specifications,
andrequirements
Collecting
relevant design
informationand
feasibilitystudy
Design
conceptualization
Design
modelingand
simulation
Design
analysis
Design
optimization
Design
evaluation
Design
documentationand
communication
P rocess
planning
Design and
procurement
of new tools
Production
planning
Order
materials
NC, CNC,DNC
programming
Production
Quality
control
Packaging
Marketing
Shipping
Typical Product Life Cycle
• Inspection to finished product
– Two main process
– Design Process
» Synthesis
(Sketches, Layout drawings-
CAD/CAM system)
» Analysis
(Design Modeling & Simulation)
– Manufacturing Process
(Process Planning & Production)
(Outcome Production Plan, tools
procurement, material order, CNC
Programming)
Concurrent Engineering
• It is a strategy where all the tasks involved in
product development are done in parallel.
Collaboration between all individuals, groups and
departments within a company.
Customer research
Designers
Marketing
Accounting
Engineering
Concurrent Engineering
Form Design
Functional
Design
Production
Design
Revising and testing
prototypes
Manufacturing
Specifications
Design
Specifications
Feasibility
Study
Idea
Generation
Suppliers R&D Customers
Marketing
Competitors
Product or Serviceconcept
PerformanceSpecifications
Pilot run and final
tests
FinalDesign
and process
plans
Product Launch
Preliminary
Design
Commercial
Design Process
Linear Process
Sequential Vs Concurrent Engineering
Traditional Process = Linear
Vs
Concurrent Engineering = T
eam collaboration
Benefits of Concurrent Engineering
• Reduces time from design concept to market
launch by 25%.
• Reduces Capital investment by 20%.
• Supports total quality from the start of
production with earlier opportunities for
continuous improvement.
• Simplifies after-sales service.
• Increases product life-cycle profitability
throughout the supply system.
The Design Process : Then and Now
Before CAD After CAD
CAD/CAM Systems
1. Hardware
2. Software
GUI
Client/Standalone
Database
Works on all OS [
Unix,Linux,Windows,Macintosh]
CAD/CAM Applications
Geometric Module
Application Module
Programming Module
Modelling/editing, documentation
Utilize model for Design Analysis.
Customization by programming
Communication Module IGES, STEP file
Collaborative Module collaborative design via internet
2D Transformations
15
Basic 2D Transformations
16
Basic 3D Transformations
Example:
Two Dimensional Viewing
• The Viewing Transformation/ Pipeline
• Line Drawing
– Several Algorithms
• Clipping
– Point clipping
– Line clipping
– Area (Polygon) clipping
– Curve clipping
– Text clipping
Viewing Transformation
Windowing
wymin
wxmin wxmax
When we display a scene only those objects
within a particular window are displayed
Window
wymax
World Coordinates
Windowing
Because drawing things to a display takes time
we clip everything outside the window
wymax
wymin
wxmin wxmax
World Coordinates
Window
Clipping
• Remove objects that are outside the world window.
• For the image below consider which lines and points
should be kept and which ones should be clipped
wymax
wymin
wxmin wxmax
Window
P1
P6
P5
P3
P7
P10
P9
P4
P
2
P
8
Point Clipping
Easy - a point (x,y) is not clipped if:
wxmin ≤ x ≤ wxmax AND wymin ≤ y ≤wymax
otherwise it is clipped
w
w
ymax
ymin
Clipped
P7
P4 Clipped
Window
P5
P1
Points Within theWindow
are Not Clipped
P9
Clipped P10
Clipped
P2
P8
wxmin wxmax
Line Clipping
Harder - examine the end-points of each line to
see if they are in the window or not
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 Don’t know!
Cohen-Sutherland Clipping Algorithm
Dr
. Ivan E. Sutherland co-developed
the Cohen-Sutherland clipping
algorithm. Sutherland is a graphics
giant and includes amongst his
achievements the invention of the
head mounted display.
Salient Features
•An efficient line clipping algorithm
•The key advantage of the algorithm is
that it vastly reduces the number of line
intersections that must be calculated
Cohen-Sutherland: World Division
World space is divided into regions based on the
window boundaries
Each region has a unique four bit region code
Region codes indicate the position of the
regions with respect to the window
1001 1000 1010
0001
0000
Window
0010
0101 0100 0110
above below right left
4 3 2 1
Region Code Legend
Area Clipping
Similarly to lines,
areas must be clipped to
a window boundary
Consideration must be
taken as to which portions
of the area must be clipped
Sutherland-Hodgman: Area Clipping Algorithm
A technique for clipping areas developed by
Sutherland & Hodgman.
Put simply the polygon is clipped by comparing
it against each boundary in turn.
Original Area Clip Left Clip Right Clip T
op Clip Bottom
CAD.pptx

More Related Content

Similar to CAD.pptx (20)

Introduction to CAD-CAM.pptx
Introduction to CAD-CAM.pptxIntroduction to CAD-CAM.pptx
Introduction to CAD-CAM.pptx
 
CADCAM CAE Notes
CADCAM CAE NotesCADCAM CAE Notes
CADCAM CAE Notes
 
Intro cad cam
Intro cad camIntro cad cam
Intro cad cam
 
Mechanical CAD General Introduction.pptx
Mechanical CAD General Introduction.pptxMechanical CAD General Introduction.pptx
Mechanical CAD General Introduction.pptx
 
Intro to CAD/CAM/CIM
Intro to CAD/CAM/CIMIntro to CAD/CAM/CIM
Intro to CAD/CAM/CIM
 
UNIT 1.pdf
UNIT 1.pdfUNIT 1.pdf
UNIT 1.pdf
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
Presentation_1375882767439
Presentation_1375882767439Presentation_1375882767439
Presentation_1375882767439
 
Presentation_1375882705328
Presentation_1375882705328Presentation_1375882705328
Presentation_1375882705328
 
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)
 
Introduction to CAD/CAM
Introduction to CAD/CAMIntroduction to CAD/CAM
Introduction to CAD/CAM
 
CAD/CAM Lecture #4
CAD/CAM Lecture #4CAD/CAM Lecture #4
CAD/CAM Lecture #4
 
ME6501 Unit 1 introduction to cad
ME6501 Unit 1 introduction to cadME6501 Unit 1 introduction to cad
ME6501 Unit 1 introduction to cad
 
Scope of CIM
Scope of CIMScope of CIM
Scope of CIM
 
Abhijeet Pombarekar
Abhijeet PombarekarAbhijeet Pombarekar
Abhijeet Pombarekar
 
CAD _ UNIT 1.pptx
CAD _ UNIT 1.pptxCAD _ UNIT 1.pptx
CAD _ UNIT 1.pptx
 
Computer Aided Design - Unit I Introduction
Computer Aided Design - Unit I IntroductionComputer Aided Design - Unit I Introduction
Computer Aided Design - Unit I Introduction
 
Cad cam capp yasir 14 me-ind01
Cad cam capp yasir 14 me-ind01Cad cam capp yasir 14 me-ind01
Cad cam capp yasir 14 me-ind01
 
FUNDAMENTALS OF COMPUTER GRAPHICS
FUNDAMENTALS OF COMPUTER GRAPHICSFUNDAMENTALS OF COMPUTER GRAPHICS
FUNDAMENTALS OF COMPUTER GRAPHICS
 
Cadcam+introduction
Cadcam+introductionCadcam+introduction
Cadcam+introduction
 

Recently uploaded

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 

Recently uploaded (20)

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 

CAD.pptx

  • 1. . COMPUTER AIDED DESIGN (CAD) ME8691 COMPUTER AIDED DESIGN AND MANUFACTURING PRESENTED BY, S.VIGNESH, ME ASSISTANT PROFESSOR, DEPARTMENT OF MECHANICAL ENGINEERING, SIR ISSAC NEWTON COLLEGE OF ENGINEERING AND TECHNOLOGY, NAGAPATTINAMBY
  • 2. ME8691 COMPUTER AIDED DESIGN AND MANUFACTURING OBJECTIVES: To provide an overview of how computers are being used in mechanical component design To understand the application of computers in various aspects of Manufacturing viz., Design, Proper planning, Manufacturing cost, Layout & Material Handling system. UNIT I INTRODUCTION Product cycle- Design process- sequential and concurrent engineering- Computer aided design – CAD system architecture- Computer graphics – co-ordinate systems- 2D and 3D transformations- homogeneous coordinates - Line drawing -Clipping- viewing transformation-Brief introduction to CAD and CAM – Manufacturing Planning, Manufacturing control- Introduction to CAD/CAM –CAD/CAM concepts ––Types of production - Manufacturing models and Metrics – Mathematical models of Production Performance
  • 3. COURSE OUTCOMES: Explain the 2D and 3D transformations, clipping algorithm, Manufacturing models and Metrics Explain the fundamentals of parametric curves, surfaces and Solids Summarize the different types of Standard systems used in CAD Apply NC & CNC programming concepts to develop part programme for Lathe & Milling Machines Summarize the different types of techniques used in Cellular Manufacturing and FMS
  • 4. CAD • CAD also known as Computer Aided Drafting/Design. • There are 3 different types of CAD (2D, 2.5D and 3D). • The software is used to create and design models of these types and test them.
  • 5. Uses of CAD CAD is used to design a variety of different products for a variety of fields such as • Architecture • Electronics • Automotive engineering • Industrial Design • Machinery • Visual Art • Medical Design
  • 6. The Product Cycle and CAD/CAM • The product begin with a need which is identified based on customers and market demands. • In order to establish the scope and definition of CAD/CAM in an engineering environment and identify existing and future related tools, a study of a typical product cycle is necessary.
  • 7. 5 The Manufacturing Process The Design Process Synthesis Analysis The CAD Process The CAM Process Design needs Design definitions, specifications, andrequirements Collecting relevant design informationand feasibilitystudy Design conceptualization Design modelingand simulation Design analysis Design optimization Design evaluation Design documentationand communication P rocess planning Design and procurement of new tools Production planning Order materials NC, CNC,DNC programming Production Quality control Packaging Marketing Shipping Typical Product Life Cycle
  • 8. • Inspection to finished product – Two main process – Design Process » Synthesis (Sketches, Layout drawings- CAD/CAM system) » Analysis (Design Modeling & Simulation) – Manufacturing Process (Process Planning & Production) (Outcome Production Plan, tools procurement, material order, CNC Programming)
  • 9. Concurrent Engineering • It is a strategy where all the tasks involved in product development are done in parallel. Collaboration between all individuals, groups and departments within a company. Customer research Designers Marketing Accounting Engineering
  • 10. Concurrent Engineering Form Design Functional Design Production Design Revising and testing prototypes Manufacturing Specifications Design Specifications Feasibility Study Idea Generation Suppliers R&D Customers Marketing Competitors Product or Serviceconcept PerformanceSpecifications Pilot run and final tests FinalDesign and process plans Product Launch Preliminary Design Commercial Design Process Linear Process
  • 11. Sequential Vs Concurrent Engineering Traditional Process = Linear Vs Concurrent Engineering = T eam collaboration
  • 12. Benefits of Concurrent Engineering • Reduces time from design concept to market launch by 25%. • Reduces Capital investment by 20%. • Supports total quality from the start of production with earlier opportunities for continuous improvement. • Simplifies after-sales service. • Increases product life-cycle profitability throughout the supply system.
  • 13. The Design Process : Then and Now Before CAD After CAD
  • 14. CAD/CAM Systems 1. Hardware 2. Software GUI Client/Standalone Database Works on all OS [ Unix,Linux,Windows,Macintosh]
  • 15. CAD/CAM Applications Geometric Module Application Module Programming Module Modelling/editing, documentation Utilize model for Design Analysis. Customization by programming Communication Module IGES, STEP file Collaborative Module collaborative design via internet
  • 20.
  • 21. Two Dimensional Viewing • The Viewing Transformation/ Pipeline • Line Drawing – Several Algorithms • Clipping – Point clipping – Line clipping – Area (Polygon) clipping – Curve clipping – Text clipping
  • 23. Windowing wymin wxmin wxmax When we display a scene only those objects within a particular window are displayed Window wymax World Coordinates
  • 24. Windowing Because drawing things to a display takes time we clip everything outside the window wymax wymin wxmin wxmax World Coordinates Window
  • 25. Clipping • Remove objects that are outside the world window. • For the image below consider which lines and points should be kept and which ones should be clipped wymax wymin wxmin wxmax Window P1 P6 P5 P3 P7 P10 P9 P4 P 2 P 8
  • 26. Point Clipping Easy - a point (x,y) is not clipped if: wxmin ≤ x ≤ wxmax AND wymin ≤ y ≤wymax otherwise it is clipped w w ymax ymin Clipped P7 P4 Clipped Window P5 P1 Points Within theWindow are Not Clipped P9 Clipped P10 Clipped P2 P8 wxmin wxmax
  • 27. Line Clipping Harder - examine the end-points of each line to see if they are in the window or not 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 Don’t know!
  • 28. Cohen-Sutherland Clipping Algorithm Dr . Ivan E. Sutherland co-developed the Cohen-Sutherland clipping algorithm. Sutherland is a graphics giant and includes amongst his achievements the invention of the head mounted display. Salient Features •An efficient line clipping algorithm •The key advantage of the algorithm is that it vastly reduces the number of line intersections that must be calculated
  • 29. Cohen-Sutherland: World Division World space is divided into regions based on the window boundaries Each region has a unique four bit region code Region codes indicate the position of the regions with respect to the window 1001 1000 1010 0001 0000 Window 0010 0101 0100 0110 above below right left 4 3 2 1 Region Code Legend
  • 30. Area Clipping Similarly to lines, areas must be clipped to a window boundary Consideration must be taken as to which portions of the area must be clipped
  • 31. Sutherland-Hodgman: Area Clipping Algorithm A technique for clipping areas developed by Sutherland & Hodgman. Put simply the polygon is clipped by comparing it against each boundary in turn. Original Area Clip Left Clip Right Clip T op Clip Bottom