CAD/CAM COMPUTER AIDED DESIGN

226
1 AT73.01 CAD/CAM COMPUTER AIDED DESIGN ERIK L.J. BOHEZ ASSOCIATE PROFESSOR DESIGN & MANUFACTURING ENGINEERING August 2005

description

v

Transcript of CAD/CAM COMPUTER AIDED DESIGN

  • 1AT73.01 CAD/CAMCOMPUTER AIDED DESIGN

    ERIK L.J. BOHEZASSOCIATE PROFESSOR

    DESIGN & MANUFACTURING ENGINEERING

    August 2005

  • 2Lesson I: Relation Between Degree n and ShapeLesson II: Any Analytic Function Can Be Written As PolynomialLesson III: Parametric Expression of Curve, Surface and SolidLesson IV: Representations of GeometryLesson V: Identifying Unknown Coefficients in Parametric

    Polynomial Equations of a CurveLesson VI: Basic 3D GeometryLesson VII: Perspective and Parallel Projections &

    Corresponding Clipping VolumesLesson VIII: CONVEX HULL DEFINITIONLesson IX: BEZIER CURVESLesson X: B-SPLINECURVESLesson XI: NURBSLesson XII: SURFACESLesson XIII: SOLID MODELINGLesson XIV: CAD SYSTEM ARCHITECTURELesson XV: IGES STEPLesson XVI: CAD HARDWARE

  • 3REFERENCE BOOKS:D.F. Rogers, and J.A. Adams: Mathematical Elements for Computer Graphics, 2nd edition, McGraw-Hill, 1990.

    G. Farin: Curves and Surfaces for Computer Aided Geometric Design, Academic Press, 1993.

    Kunwoo Lee:Principles of CAD/CAM/CAE Systems,Addison-Wesley, 1999

    I.D. Faux, and M.J. Pratt: Computational Geometry for Design and Manufacture, Ellis Horwood Limited, 1979.

  • 4REFERENCE BOOKS:V.B. Anand: Computer Graphics and Geometric Modeling for Engineers, John Wiley & Sons, 1993.

    W.K. Giloi: An Introduction to Solid Modeling, Computer Science Press, 1998.

    M.P. Groover, and E.W. Zimmer: CAD/CAM: Computer-Aided Design and Manufacturing, Prentice Hall, 2000

    Zeid: CAD/CAM Theory and Practice, McGraw-Hill, 1991.

  • 5Lesson I: Relation Between Degree n and Shape

  • 6Lesson I: Relation Between Degree n and Shape

  • 7Lesson I: Relation Between Degree n and Shape

  • 8Lesson II: Any Analytic Function Can Be Written As Polynomial

  • 9Lesson III: Parametric Expression of Curve, Surface and Solid

  • 10

    Lesson III: Parametric Expression of Curve, Surface and Solid

  • 11

    Lesson III: Parametric Expression of Curve, Surface and Solid

  • 12

    Lesson IV: Representations of Geometry

  • 13

    Lesson IV: Representations of Geometry

  • 14

    Lesson IV: Representations of Geometry

  • 15POLYGON MESH SMOOTH CURVES

  • 16

  • 17

  • 18

    Lesson IV: Representations of Geometry

  • 19

    Lesson IV: Representations of Geometry

  • 20

  • 21

    Conic Sections

  • 22

  • 23

  • 24

  • 25

  • 26

  • 27

  • 28

  • 29

  • 30

  • 31

  • 32

    What does a CAD system do with the equations?

  • 33

    What does a CAD system do with the equations?

  • 34

    What does a CAD system do with the equations?

  • 35

    Lesson V: Identifying Unknown Coefficients in Parametric Polynomial Equations of a Curve

  • 36

    Lesson V: Identifying Unknown Coefficients in Parametric Polynomial Equations of a Curve

  • 37

    Lesson V: Identifying Unknown Coefficients in Parametric Polynomial Equations of a Curve

  • 38

    Lesson VI: Basic 3D GeometryCoordinate System

  • 39

    Lesson VI: Basic 3D GeometryParametric Line & Plane Equation

  • 40

    Lesson VI: Basic 3D GeometryDot and Cross Vector Product

  • 41

    VECTOR CROSS PRODUCT

  • 42

    Lesson VI: Basic 3D Geometry3D Transformations, Scaling, Translation, Rotation

  • 43

    Lesson VI: Basic 3D Geometry3D Transformations, Scaling, Translation, Rotation

  • 44

    Lesson VII: Perspective and Parallel Projections &Corresponding Clipping Volumes

  • 45

  • 46

  • 47

  • 48

  • 49

    Lesson VIII: CONVEX HULL DEFINITIONDefinition of POINTS & VECTORS

    VECTOR = DIFFERENCE OF TWO POINTS

  • 50

  • 51

    Lesson VIII: CONVEX HULL DEFINITIONDefinition of BARYCENTRIC COMBINATIONS

  • 52

  • 53

    OTHER DEFINITION OF CONVEX POLYGON:

    -For all possible two points inside the polygon -take two points inside the polygon-connect the two points by a straight line-if all points on this line are inside-then polygon is convex-else it is concave

    CONVEX

    NON-CONVEX = CONCAVE

  • 54

    Lesson VIII: CONVEX HULL DEFINITIONDefinition of AFFINE MAPS

  • 55

  • 56

  • 57

    Lesson VIII: CONVEX HULL DEFINITIONDefinition of LINEAR INTERPOLATION

  • 58

  • 59

  • 60

  • 61

    Lesson IX: BEZIER CURVESCASTELJAU ALGORITHM

  • 62

    Lesson IX: BEZIER CURVESCASTELJAU ALGORITHM

  • 63

  • 64

  • 65

  • 66

    Lesson IX: BEZIER CURVESBERNSTEIN POLYNOMIALS

  • 67

  • 68

  • 69

  • 70

  • 71

  • 72

  • 73

  • 74

  • 75

    Lesson X: B-SPLINECURVES

  • 76

    Lesson X: B-SPLINECURVES

  • 77

  • 78

  • 79

  • 80

    Lesson X: B-SPLINECURVESB-SPLINE PROPERTIES

  • 81

  • 82

  • 83

  • 84

    Lesson X: B-SPLINECURVESB-SPLINE CONTROL HANDLES

  • 85

    Lesson X: B-SPLINECURVESB-SPLINE CONVEX HULL

  • 86

    Lesson X: B-SPLINECURVESB-SPLINE EMBEDDED LINE

  • 87

    Lesson X: B-SPLINECURVESRELATION DEGREE/SHAPEMULTIPLE KNOTS

  • 88

    Lesson X: B-SPLINECURVESKNOT INTERVAL INFLUENCE ON SHAPE

  • 89

    Lesson X: B-SPLINECURVESDUPLICATE KNOTS

  • 90

    Lesson X: B-SPLINECURVESUNIFORM B-SPLINES NOT USED IN CAD BECAUSE NO ENDPOINT CONTROL

  • 91

    B-Spline Properties:- Convex Hull - Local Control- Embedded Straight Line- Conic Section - Degree

  • 92

    B-spline Control Polygon

  • 93

    Convex Hull of B-spline : Partial Convex Hull 1

  • 94

    Convex Hull of B-spline : Partial Convex Hull 2

  • 95

    Convex Hull of B-spline : Partial Convex Hull 3

  • 96

    Convex Hull of B-spline : Partial Convex Hull 4

  • 97

    Convex Hull of B-spline : Partial Convex Hull 5

  • 98

    Convex Hull of B-spline : Partial Convex Hull 6

  • 99

    Convex Hull of B-spline : Partial Convex Hull 7

  • 100

    Convex Hull of B-spline : Partial Convex Hull 8

  • 101

    Convex Hull of B-spline = Union of Partial Convex Hulls

    KNOT VECTOR: (8 Pieces of Curve because we have 8 Convex Hulls){U0 U0 U0 U1 U2 U3 U4 U5 U6 U7 U8 U8 U8}Length of intervals for knotvector:U0U1 = d0d1d2; U1U2 = d1d2d3; U2U3 =d2d3d4; U3U4 = d3d4d5;U5U6 = d5d6d7; U7U8 = d7d8d9

  • 102

    Convex Hull of B-spline = Union of Partial Convex Hulls

  • 103

    B-Splines is Inside Convex Hull

  • 104

    B-Spline Smoothly Embeds Straight Line Segment

  • 105

    Local Control of B-Spline:-better the lower the degree

    B-Spline of Degree n = 2

  • 106

    B-Spline of Degree n = 3-Less local control-To embed straight line will require more control points in line

  • 107

    n = 3

    n = 2

  • 108

    B-spline curve-Embedded Straight Line-Circle Approximation

    NURBS

  • 109

    Lesson X: B-SPLINECURVESB-SPLINE PROPERTIES B-SPLINE CANNOT MODEL CONIC SECTIONS

  • 110

  • 111

  • 112

  • 113

    Lesson XI: NURBSNon Uniform Rational B-spline

  • 114

  • 115

  • 116

  • 117

    Lesson XII: SURFACES

  • 118

  • 119

  • 120

  • 121

  • 122

  • 123

  • 124

  • 125

  • 126

  • 127

    Bezier Surfaceof degree 7

    b-spline Surfaceof degree 3

  • 128

    Bezier Surfaceof degree 7

    b-spline Surfaceof degree 3

  • 129

    Bezier Surfaceof degree 7

    b-spline Surfaceof degree 3

  • 130

    Bezier Surfaceof degree 7

    b-spline Surfaceof degree 3

  • 131

    Bezier Surfaceof degree 7

    b-spline Surfaceof degree 3

  • 132

    b-spline surfacedegree 3

    b-spline surfacedegree 2

    Difference

  • 133

  • 134

  • 135

  • 136

  • 137

  • 138

  • 139

  • 140

  • 141

  • 142

    Lesson XIII: SOLID MODELING

    9Construction Solid Geometry (CSG) Boolean Operatons

    9Boundary Representation

    9Volume Elements (VOXELS) Octree/Quatree

    9Hyperpatch Parametric Polynomial X(u,v,w)

  • 143

    R1 = (C2-C1)R = (C2-C1) CY1

  • 144

    B-repBoundary Representation

  • 145

    Cell DecompositionVoxels

    OCTREE 3DQUATREE 2D

  • 146

    Most used Solid Modeling systems are based on CSG & B-RepTranslators are needed to Translate from one representationto another

  • 147

    Lesson XIV: CAD SYSTEM ARCHITECTURE

    OpenGL.org

    IGES: Initial Graphics Exchange Specification ISO

    STEP

  • 148

    Evolution of Standards in CAD/CAM

  • 149

    Lesson XV: IGES STEP

  • 150

  • 151Sample IGES file

  • 152

    STEP

  • 153

  • 154

  • 155

  • 156

    INTEGRATED RESOURSES

  • 157

  • 158

    EXPRESS Language Description Methods

  • 159

  • 160

    APPLICATION PROTOCOLS

  • 161

  • 162

  • 163

    IMPLEMENTATION METHODS

  • 164

  • 165

  • 166

    SUPPORTED INDUSTRY SECTORS

  • 167

    SUPPORTED INDUSTRY SECTORS

  • 168

  • 169

  • 170

    PRODUCT BOM DOCUMENT BOM

  • 171

    WRONG

    TODAY

    FUTURE

  • 172

  • 173

    STEP Series

  • 174

    STEP Series

  • 175

    IGES File:

  • 176

    The last DE number in '..\igs\126-000.IGS' is 1

    ************** Global Section **************

    Parameter Delimiter Character = ","Record Delimiter Character = ";"Product ID from Sender = "126-000"File Name = "126-000.IGS"System ID = "{unspecified}"Pre-processor Version = "IGESXTRACT(tm) Version 5.3 (Jul 29 1997)"Number of Bits for Integers = 32Single Precision Magnitude = 38Single Precision Signif icance = 15Double Precision Magnitude = 308Double Precision Significance = 15Product ID for Receiver = "126-000"Model Space Scale = 1.00000Unit Flag = 1 - InchesUnits = "INCH"Maximum Number of Line Weights = 8Size of Maximum Line Width = 0.0160000Date & Time Stamp = "970731.034906"Minimum User-intended Resolution = 0.000100000Approximate Maximum Coordinate = 0.000000Name of Author = "[email protected]"Author's Organization = "Legacy PDD AP Committee"IGES Version Number = 11 - USPRO/IPO-100-1996 (IGES 5.3)Drafting Standard Code = 0 - None SpecifiedModel Creation/Change Date = "920717.080000"Application Protocol/Subset ID =

  • 177

    ************ Terminate Section *************

    1 records in Start Section4 records in Global Section2 records in Directory Entry Section (1 entities)5 records in Parameter Data Section

    ******************* DE = 1 *******************

    Entity Type Number = 126 - Rational B-Spline CurveParameter Data (Count) = 1 (5)Structure = 0Line Font Pattern = 1 - SolidLevel = 0View = 0Transformation Matrix = 0Label Display = 0Blank Status = 0 - VisibleSubord. Entity Switch = 0 - IndependentEntity Use Flag = 0 - GeometryHierarchy = 1 - Global deferLine Weight Number = 0Color Number = 2 - RedForm Number = 0 - Entity Label (Subscript) = ()

  • 178

    ******************* Parameter Data Record *******************K = 8M = 3PROP1 = 1 - PlanarPROP2 = 0 - Open CurvePROP3 = 1 - PolynomialPROP4 = 0 - Non-periodicT(-3) = 0.000000T(-2) = 0.000000T(-1) = 0.000000T(0) = 0.000000T(1) = 1.00000T(2) = 2.00000T(3) = 3.00000T(4) = 4.00000T(5) = 5.00000T(6) = 6.00000T(7) = 6.00000T(8) = 6.00000T(9) = 6.00000W(0) = 1.00000W(1) = 1.00000W(2) = 1.00000W(3) = 1.00000W(4) = 1.00000W(5) = 1.00000W(6) = 1.00000W(7) = 1.00000W(8) = 1.00000

  • 179

    XYZ(0) = 7.00000, 7.00000, 0.000000XYZ(1) = 7.01111, 7.15385, 0.000000XYZ(2) = 7.03333, 7.46154, 0.000000XYZ(3) = 6.86667, 8.15385, 0.000000XYZ(4) = 7.50000, 7.92308, 0.000000XYZ(5) = 8.13333, 8.15385, 0.000000XYZ(6) = 7.96667, 7.46154, 0.000000XYZ(7) = 7.98889, 7.15385, 0.000000XYZ(8) = 8.00000, 7.00000, 0.000000V(0) = 0.000000V(1) = 6.00000NORM = 0.000000, 0.000000, 1.00000*************** Associativities & Properties ****************NA = NP =

  • 180

  • 181

    The last DE number in '..\igs\128-000.IGS' is 1

    ************** Global Section **************

    Parameter Delimiter Character = ","Record Delimiter Character = ";"Product ID from Sender = "NENTITY"File Name = "128-000.igs"System ID = "{unknown}"Pre-processor Version = "{unknown}"Number of Bits for Integers = 16Single Precision Magnitude = 6Single Precision Signif icance = 15Double Precision Magnitude = 13Double Precision Significance = 15Product ID for Receiver = "NENTITY"Model Space Scale = 1.00000Unit Flag = 1 - InchesUnits = "INCH"Maximum Number of Line Weights = 8Size of Maximum Line Width = 0.0160000Date & Time Stamp = "19970830.165254"Minimum User-intended Resolution = 0.000100000Approximate Maximum Coordinate = 0.000000Name of Author = "[email protected]"Author's Organization = "Legacy PDD AP Committee"IGES Version Number = 10 - USPRO/IPO-100 (IGES 5.2) [USPRO93]Drafting Standard Code = 3 - ANSIModel Creation/Change Date = "920717.080000"

  • 182

    ************ Terminate Section *************

    1 records in Start Section4 records in Global Section2 records in Directory Entry Section (1 entities)17 records in Parameter Data Section

    ******************* DE = 1 *******************

    Entity Type Number = 128 - Rational B-Spline SurfaceParameter Data (Count) = 1 (17)Structure = 0Line Font Pattern = 1 - SolidLevel = 0View = 0Transformation Matrix = 0Label Display = 0Blank Status = 0 - VisibleSubord. Entity Switch = 0 - IndependentEntity Use Flag = 0 - GeometryHierarchy = 1 - Global deferLine Weight Number = 0Color Number = 2 - RedForm Number = 0 - Entity Label (Subscript) = ()

  • 183

    ******************* Parameter Data Record *******************K1 = 3K2 = 7M1 = 3M2 = 5PROP1 = 0 - Not ClosedPROP2 = 0 - Not ClosedPROP3 = 1 - PolynomialPROP4 = 0 - Non-periodic in 1st directionPROP5 = 0 - Non-periodic in 2nd directionS(-3) = 0.000000S(-2) = 0.000000S(-1) = 0.000000S(0) = 0.000000S(1) = 1.00000S(2) = 1.00000S(3) = 1.00000S(4) = 1.00000T(-5) = 0.000000T(-4) = 0.000000T(-3) = 0.000000T(-2) = 0.000000T(-1) = 0.000000T(0) = 0.000000T(1) = 1.00000T(2) = 2.00000T(3) = 3.00000T(4) = 3.00000T(5) = 3.00000T(6) = 3.00000T(7) = 3.00000T(8) = 3.00000

    W(0,0) = 1.00000W(1,0) = 1.00000W(2,0) = 1.00000W(3,0) = 1.00000W(0,1) = 1.00000W(1,1) = 1.00000W(2,1) = 1.00000W(3,1) = 1.00000W(0,2) = 1.00000W(1,2) = 1.00000W(2,2) = 1.00000W(3,2) = 1.00000W(0,3) = 1.00000W(1,3) = 1.00000W(2,3) = 1.00000W(3,3) = 1.00000W(0,4) = 1.00000W(1,4) = 1.00000W(2,4) = 1.00000W(3,4) = 1.00000W(0,5) = 1.00000W(1,5) = 1.00000W(2,5) = 1.00000W(3,5) = 1.00000W(0,6) = 1.00000W(1,6) = 1.00000W(2,6) = 1.00000W(3,6) = 1.00000W(0,7) = 1.00000W(1,7) = 1.00000W(2,7) = 1.00000W(3,7) = 1.00000

  • 184

    XYZ(0,0) = 8.50000, 9.50000, 1.00000XYZ(1,0) = 8.50000, 9.25000, 0.666667XYZ(2,0) = 8.50000, 9.00000, 0.333333XYZ(3,0) = 8.50000, 8.75000, 0.000000XYZ(0,1) = 8.49394, 9.44659, 1.00000XYZ(1,1) = 8.49394, 9.19659, 0.666667XYZ(2,1) = 8.49394, 8.94659, 0.333333XYZ(3,1) = 8.49394, 8.69659, 0.000000XYZ(0,2) = 8.43636, 9.39545, 1.00000XYZ(1,2) = 8.43636, 9.14546, 0.666667XYZ(2,2) = 8.43636, 8.89545, 0.333333XYZ(3,2) = 8.43636, 8.64545, 0.000000XYZ(0,3) = 8.21364, 9.48580, 1.00000XYZ(1,3) = 8.21364, 9.23580, 0.666667XYZ(2,3) = 8.21364, 8.98580, 0.333333XYZ(3,3) = 8.21364, 8.73580, 0.000000XYZ(0,4) = 7.78636, 9.82671, 1.00000XYZ(1,4) = 7.78637, 9.57671, 0.666667XYZ(2,4) = 7.78637, 9.32671, 0.333333XYZ(3,4) = 7.78636, 9.07671, 0.000000XYZ(0,5) = 7.56363, 9.80454, 1.00000XYZ(1,5) = 7.56363, 9.55454, 0.666667XYZ(2,5) = 7.56363, 9.30454, 0.333333XYZ(3,5) = 7.56363, 9.05454, 0.000000XYZ(0,6) = 7.50606, 9.62841, 1.00000XYZ(1,6) = 7.50606, 9.37841, 0.666667XYZ(2,6) = 7.50606, 9.12841, 0.333333XYZ(3,6) = 7.50606, 8.87841, 0.000000XYZ(0,7) = 7.50000, 9.50000, 1.00000XYZ(1,7) = 7.50000, 9.25000, 0.666667XYZ(2,7) = 7.50000, 9.00000, 0.333333XYZ(3,7) = 7.50000, 8.75000, 0.000000

    U(0) = 0.000000U(1) = 1.00000V(0) = 0.000000V(1) = 3.00000*************** Associativities & Properties ****NA = NP =

  • 185

    CAD HARDWARE COMPUTER GRAPHICS

    WORKSTATIONS-Vector Display-Raster Scan Display-Flat Panel Display-Mouse Locator Selector-Light penPLOTTERS-Pen Plotter Vector Ploter-LASER Printer Raster printer/Plotter-Inkjet Printer Raster printer/Plotter-Electro-Static Printer Raster printer/PlotterSCANNERSDIGITIZERS - 2D/3D

  • 186

    VECTOR DISPLAY

    DISPLAYFILE

  • 187

    RASTER DISPLAY

    FRAME BUFFER

  • 188

    COLOR RASTER DISPLAY

    SCAN LINES

  • 189

    Subtractive ColorsCyanMagentaYellow

    Used For Printers(White Background)

    Additive ColorsRedGreenBlue

    Used for displaysBlack Background

  • 190

  • 191

    LIQUID CRYSTAL DISPLAY

    Twisted Nematic Effect

  • 192

  • 193

    Time Multiplexing in LCD

  • 194

  • 195

  • 196

  • 197

  • 198

  • 199

    3D Display

  • 200

  • 201

    INTERACTION DEVICES-KEY BOARD -MOUSE = PURE LOCATOR DEVICE-LICHT PEN = PURE SELECTOR DEVICE

    KEY = EVENT DRIVEN DEVICEMOUSE = SAMPLED DEVICELIGHT PEN = EVENT DRIVEN DEVICETOUCH SCREEN

  • 202

  • 203

  • 204

  • 205

  • 206

  • 207

  • 208

    Mouse

    Keyboard

    Event Queue

    ApplicationProgram

    Sample DeviceDeviceHandler

    Get

    Commands:SetInputModeSetWaitEvent

  • 209

  • 210

    LIGHT PEN = PURE SELECTOR DEVICE

  • 211

  • 212

    Infrared Laser Diode

    Infrared Sensitive DiodesInfrared Beams

    Infrared LaserDiodes

    TOUCH SCREEN

  • 213

  • 214

    PEN PLOTTER VECTOR PLOTTER

  • 215

    LASER PRINTER RASTER PRINTER

  • 216

  • 217

    INKJET PRINTER RASTER PRINTER

  • 218

    INKJET PRINTER RASTER PRINTER

  • 219INKJET PRINTER RASTER PRINTER

  • 220

  • 221

  • 222

  • 223

  • 2243D ULTRASONIC DIGITIZER

  • 225

    Microphone

    2D ULTRASONIC DIGITIZER

  • 226