CAD LEC Chapter 1 To 4
CAD LEC Chapter 1 To 4
2024/25
1
CHAPTER ONE
Fundamentals of CAD
2
INTRODUCTION TO CAD
3
INTRODUCTION TO CAD
Visualization 4
ADVANTAGES OF CAD
What is design?
Design is a complete prototype with fabrication and analysis
7
Synthesis
o Creation and conceptualization
Analysis and optimization
o The concept is analyzed and redesigned
Evaluation
o Compare design against original specification.
Presentation
o Documentation of the design (Automated drafting)
8
9
10
11
12
Redesign (if needed)
CAD CAE
Drawing the designed Analysis and simulation
model (geometry) - FEA
- CFD
CAM
Manufacturing
- CNC
13
Optimum designed product
Computer-Aided Design
CAD is the use of computer in the creation and modification of designed
geometry using softwares called “CAD softwares”.
CAM softwares
Common CAM MasterCam ArtCAM
softwares SolidWorks CAM PowerMILL
SolidCam Swansoft
28
HISTORICAL PERSPECTIVE
• The history CAD has been largely related to the development in Interactive
computer graphics (ICG) research
1st CAD demonstration by Ivan Sutherland (1963) - SKETCHPAD.
A year later IBM produced the first commercial CAD system.
Many changes has taken place since then, with the advancement of powerful
computers.
With these developments, it is now possible to do all the designs using CAD
including two-dimensional drawings, solid modeling, complex engineering
analysis, production and manufacturing.
New technologies are constantly invented which make this process quicker, more
versatile and more powerful.
29
INTRODUCTION OF GEOMETRIC MODELING
31
CHAPTER TWO
32
CAD HARDWARE
33
CAD WORK STATION:
• CAD Work station: it is a visible part of the CAD system which provides
interaction between the operator and the system.
• It has a capacity to support major software packages, multitask capability,
networking potential, availability and portability.
34
CAD HARDWARE
CAD input
devices
CAD Hardware
CAD output
devices
36
CAD INPUT DEVICES
1) Light Pens: it is a picking device that enables to select the displayed item on the
screen by directly touching the vicinity of the item. It detects light from the graphics
items displayed on the screen and sends an interrupted signal to the computer to
determine which item was seen by the pen.
37
CAD INPUT DEVICES
38
CAD INPUT DEVICES
3) Joystick and trackballs: are analogous to a mouse device, and operate on the same
principle. These devices are applicable to control velocity or force in some simulation
application where fast responses are required.
4) Touch Sensitive Screens: This device is embedded in the monitor screens, usually,
in the form of an overlay. The screen senses the physical contact of the user.
39
CAD INPUT DEVICES
40
CAD INPUT DEVICES
B. Digitizers:
• They are electro-mechanical vector graphic input devices that resemble a drafting
board.
• It consists of 3 basic elements:
• Locator (puck or stylus),
• Tablet, and
• Software.
• There are electrical wires embedded in orthogonal directions that receive and pass
signals between the device and the computer.
• It is used to draw irregular shapes or copy a drawing.
41
42
CAD INPUT DEVICES
C. Image-input Devices:
• Are like Scanners, which can copy a drawing or schematic with a
camera and light beam assembly and convert it into a pictorial
database.
43
Soft
Devices
Soft devices:
• Soft devices are display terminals, which display information on a screen,
• Hard devices refer to hardcopy printers and plotters that provide permanent
copies of the displayed information.
The ICG(interactive computer graphics) display device can be classified in to two
groups
A. Display device based on CRT principle
B. Flat screens ( LCD & plasma screen) 44
CRT (Cathode Ray Tube):
CRT is a glass enclosed tube in which a finely focused electron beam is deflected to
a phosphor coated screen. The screen then glows to produce a visible trace when
excited by impinging electrons.
The CRT used in video monitor is shown schematically in fig below. Electrons are
emitted from a cathode and are attracted to the anode (phosphor coating). The
electron beam is collimated to a single spot by means of magnetic deflections
coils.
45
CAD OUTPUT DEVICES
2) Raster Scan:
• it is the most common method of displaying the graphics.
• The viewing screen is divided into large number of discrete phosphor picture
elements which is small dots or points called Pixels.
• The pixels are arranged in rows and columns in the form of a matrix.
• The matrix of pixel constitutes the raster.(eg.256x256,1024x1024)
• Each pixel can be made to glow with a different brightness and colors.
• The process is repeated at rate of 30-60 entire scans per second.
Pixel 47
• An electron beam creates the image by sweeping along a horizontal
line from left to right and energizing the pixels in that line and move to
the next line below and proceeds in a fixed pattern as in fig.
48
Types of Graphic terminal display devices
I. Direct – beam refresh
II. DVST (Direct View Storage Tube)
III. Raster scan(Digital TV) display system
I. Direct – Beam Refresh:-in this system the electron beam operates like a
pencil & follows a sequence of straight lines
• Utilizes stroke –writing approach to generate the image.
• The display must be refreshed at regular intervals – minimum of 30 Hz .
• Phosphor has short persistence – decays in 10-100 microseconds
• Refresh Buffer – memory space allocated to store the display list causes
the electron beam to draw the picture repeatedly.
• Difficult to avoid flickering of the images.
• Selective erasure and Animation are possible. 49
CAD OUTPUT DEVICES
52
• LCD devices produce a picture by passing polarized light from an internal light
source through a liquid crystal material that can be aligned to either block or
transmit the light.
• Normally, the molecules are twisted as shown in the "on state“.
• To turn the “off state”, we apply a voltage to the two intersecting conductors
to align the molecules so that the light is not twisted.
• It is the off state which displays the image.
• Picture definitions are stored in a refresh buffer, and the screen is refreshed at
the rate of 60 frames per second.
.
53
Hard Devices: refer to hard copy devices like plotters and printers are used
for this purpose.
• A plotter is often used to produce large size drawings and assemblies, where as, a
laser jet printer is adequate to provide a 3-D view of a model.
• These devices include:
i. Pen Plotters(Flat bad type & Drum type)
54
55
56
57
ii. Hard-copy units
iii. Electrostatic plotters
iV. Computer-output-microfilm(COM) units
60
Points to be noticed for designing Graphics Software:
1. Simplicity - easy to use
2. Consistency – predictable to user 5. Performance – fast speed of response
3. Completeness – full set of graphic functions 6. Economy – not too expensive
4. Robustness – tolerating minor misuse 61
MODULES IN A GRAPHICS PACKAGE
• The graphics software can be divided into three modules according to a conceptual
model. They are
o The graphics package
o The application program
o The application Database
Design Work Station
62
MODULES IN A GRAPHICS PACKAGE
• Application Program:
- Is the central module
- Controls the storing data into and retrieving the data out of the application database.(Is driven by
the user through graphics package)
- Is written by the user to do a specific job
• Graphics Package: it acts as intermediate between Design Work Station
66
DATABASE
• Three types of coordinate system are needed in order to input, store and display
model geometry and graphics:
Model Coordinate System(MCS): It is the reference space w.r.t. (with respect
to) which geometrical data of objects are stored. It is the Cartesian coordinate.
World Coordinate System(WCS): It is used to explain inclined faces or
objects.
Screen Coordinate System(SCS): It is a two dimensional device dependent
system whose origin is usually located at the lower left corner of the graphics
display/screen. The physical dimension of a device determine the range and the
measurement unit of SCS.
68
Model Coordinate System(MCS):
71
USE OF GRAPHICS ELEMENT
72
Constructing geometry:
1. Use of graphics element
2. Defining Graphics element
3. Editing geometry
Coordinate system
1. Cartesian coordinate system
2. Polar coordinate system (@distance< degree)
3. Absolute coordinate system(x,y)
4. Relative coordinate system (using pervious point of curser,
with syntax @) (@x,y)
73
Absolute coordinate system(x,y)
Points:
1. By locating on a cursor control devise
2. By specifying on a key board
3. Offset from previous point
4. Intersection of lines
5. Locating points at specified distances
75
Lines:
1. Using two points
2. Using a point and angle from Horizontal
3. Using a point and a parallel or perpendicular to a line
4. Using a point and tangent to a curve
5. Tangent to 2- Curves
6. Creating Horizontal line
7. Creating Vertical line
76
Circle
1. By using 3 points
2. By using radius/diameter & center
3. 2 points representing diameter
4. Creating a circle tangent to other geometrical item
Arc
1. 3 points
2. Center, start, end
3. Center, start, angle
4. Center, radius, start angle and end point
5. Convert arc into a circle
Rectangle: specify 1st point and diagonally opposite point 77
Ellipse: Using existing lines as axes and the specify length of
axes
Fillet:(with trim and with no trim)
Chamfer:(with trim and with no trim)
Geometric Modeling and Types of Geometric Models
• Geometrical Modeling:
Is a computer compatible mathematical description of the
geometry of an object, which allows the image of the object
to be displayed and manipulated on a graphic terminals
through the signals from CPU of the CAD system.
78
• Steps involved in construction of Geometric Model:
- Type command to generate basic geometric entities
(points, arc, lines, circle)
- Type command to accomplish scaling, rotation, and
other transformation
- Type command to join into desired shape of the
object
During this the process, the computer converts the
commands into a mathematical model, stores it in the data
files and displays it on the graphic terminal, and the model
can be called for review analysis or alteration.
79
80
81
2-D GEOMETRIC MODELING
The 2D geometric models exercise used to appear under the
Geometry Math Mission. This exercise explores applications of
two-dimensional models to real-life situations.
Used for relatively simple shape so that is
recommended for manufacturing process drawing.
Many simple or symmetrical models, both rotational and
translational can be quick & effectively can be communicated
on 2D.
82
LIMITATION OF 2D GEOMETRIC MODELING
83
Questions ?
84
CHAPTER FOUR
85
Introduction
• 3D modeling is creating an object or a part which has 3D
characteristics and can be viewed 3D
• Simply, the object has depth or thickness
• In 2D drafting or drawing, the object is normally drawn in XY
direction.
• In 3D modeling, the object is drawn in XY and also Z direction
• Object modeled in 3D can be rotated and view from any angle
• Generally, more complicated to create and produce compared to 2D
86
The three types of 3D Geometric models are:
4.1 Wire frame model
4.2 Surface model
4.3 Solid model
87
4.1 WIREFRAME MODELING
• A cube can be generated with twelve edges generated from eight vertices.
89
Advantages:
Simple to construct
Less time & memory are require
No extensive training is required
Less time to be retrieved
Can be used for finite element analysis.
Can be used as input for CNC machines to generate simple parts.
Contain most of the information needed to create surface, solid and higher order models
Disadvantages:
They are ambiguous/confusing
Difficult to interpret
Luck of information
Can not distinguish visible & hidden line
Inability to recognize and model complex curved surface
Inability to show interference of surface
Uniqueness problem
No mass properties details (e.g. Weight, inertia, mass)
No automatic shedding
90
Wire frame Entities
91
1. Cubic Spline: works on interpolation
techniques
92
93
4.2 Surface model
94
SURFACE MODELING
• A cube can be generated as surface model with six faces instead of 12 edges
95
Surface model
96
Surface model
• It defines shapes precisely and accurately (e.g. car, ship, airplane
bodies)
• To create surface model quantitative & qualitative distance
required
• It consists of only surface geometry no internal information but
solid modeling has complete internal and geometry information.
• External shape of object can be obtained with no information
about internal shape.
E.g. sheet metal cover, car body exteriors. Loft
• The basic sketching tools required for surface generation are : Surface
Offset surface
• extruded surface
• revolved surface Extrude
• swept surface Surface
• offset surface
Sweep
97
surface
Revolution Surface
Plane surface
Advantages and disadvantages of surface modeling
Advantages
• They are less ambiguous
• Hidden line & shading algorithms are provided to add realism to the displayed
object
• It can be used to calculate mass property details, FEM mesh, NC programming, etc
• Renders the model for better visualization and presentation, objects appear more
realistic.
• Provides the surface geometry for CNC machining.
• Provides the geometry needed for mold and die design.
• Can be used to design and analyze complex free-formed surfaces (ship hulls,
airplane fuselages, car bodies, …).
• Surface properties such as roughness, color and reflectivity can be assigned and
demonstrated. 98
• Disadvantages
• It needs wire frame entities for beginning
• It needs more CPU time and storage capacity
• It is also ambiguous in some application
• Surface models provide no information about the inside of an
object.
• Complicated computation, depending on the number of surfaces (It
is sometime difficult to create)
99
ENTITIES USED IN SURFACE MODELING
{Alias Designer}
100
a. Plane surface: It requires minimum of 3 non-coincident
points. It is used to find c/s area and mass property details.
101
102
103
104
c. Surface of Revolution:
It is an axis symmetric surface which used to model axis
symmetric objects. It is generated by rotating a planar wire
frame entity about the axis a certain angle.
105
Generated
Curves
Generator
Curves
106
e. Bezier Surface: It is a surface that approximates given input
data. It is general surface that permits twist and kink
A B E Z I E R S U R FAC E U N D E R T H E
C H A R AC T E R I S T I C P O LY G O N
F O R M E D B Y I T S C O N T RO L
POINTS
107
g. Coons Patch: The above surfaces are used either open
boundaries or given data points but this one uses curves that
form closed boundaries.
108
h. Fillet Surfaces: It bends to straight surfaces. Original surface
can be trimmed or not trimmed.
Fillet
109
Surface Offset
4.3 SOLID MODELS
110
SOLID MODELS
• In the solid modeling, the solid definitions include vertices (nodes), edges, surfaces,
weight, and volume. The model is a complete and unambiguous representation of a
precisely enclosed and filled volume.
111
Geometry
• Geometry is the actual dimensions that defines the entity of an object
• It is called as metric information
• It includes
• length of line
• Angle between lines
• Centre of circle
• Radius of circle
112
Topology
• Topology generalizes many distance related concepts, such as continuity,
compactness and convergence.
• In topology we can consider two wholly different shapes in geometry as the same
because we can pull or push the lines or move the vertices.
113
114
SOLID MODELS
Advantages
• Least abstract & more realistic model
• Has all the advantages of surface models (uniqueness, non-ambiguous, realistic, surface
profile) plus volumetric information.
• 2D standard drawings, assembly drawing and exploded views are generated form the
115
3D model.
SOLID MODELS
Advantages:
• Can easily be exported to different Finite Element Methods programs for analysis.
• Can be used in newly manufacturing techniques; computer integrated
manufacturing (CIM), computer aided manufacturing (CAM) and Design for
manufacturability (DFM) , Design for assembly (DFA)
• Mass and volumetric properties of an object can be easily obtained; total mass,
mass center, area and mass moment of inertia, volume, radius of gyration, …
Disadvantages:
• Difficult to construct complex objects than wireframe and surface
modeling
• Consumes more computer time and memory (Requires more powerful
computers (faster with more memory and good graphics)
116
WHY SOLID MODELING?
117
Popular Solid Representation Schemes:
3. Sweep representation:
118
1. Constructive Solid Geometry (CSG)
• CSG defines a model in terms of combining basic and generated (using extrusion
and sweeping operation) solid shapes.
120
Constructive Solid Geometry (CSG)
122
PRIMITIVE SOLIDS
The location of
the insertion base
or base point and
default axes
orientation.
123
SET THEORY
124
BOOLEAN OPERATION
• Union
• The sum of all points in each of two defined sets. (logical “OR”)
• Also referred to as Add, Combine, Join, Merge
125
BOOLEAN OPERATION
• Difference
– The points in a source set minus the points common to a second set.
(logical “NOT”)
– Set must share common volume
– Also referred to as subtraction, remove, cut
126
BOOLEAN OPERATION
• Intersection
– Those points common to each of two defined sets (logical “AND”)
– Set must share common volume
– Also referred to as common
127
BOOLEAN OPERATION
Subtract
128
Union Intersection
IMPLEMENTING BOOLEAN OPERATION
Consider solids A and B.
129
Solid Modeling Exercise Using CSG
Union
Cut
130
Advantages
131
Disadvantages
• Difficult to model geometry with complicated surface
• An object’s face , edges,Vertices are not available in clear form
• Mathematically difficult as the degree of the surfaces increases
• Only Boolean operations are allowed in the modeling process with
Boolean operation alone, the range of shapes to be modeled is severely
restricted not possible to construct unusual shape.
132
2. Boundary Representation/B-Rep/:
• The boundary representation method represents a solid as a collection of
boundary surfaces.
• The method is can be conveniently used for hidden surface removal and
rendering due to the directly available surface information of the modeled
objects.
• It does not guarantee that a group of boundary surfaces (often polygons) form a
closed solid. This representation is used mainly for graphical displays.
• Many CAD systems have a hybrid data structure, using CSG and B-rep
133
object boundary
BOUNDARY REPRESENTATION (B -REP)
• A solid model is formed by defining the surfaces that form its boundary (edges
and surfaces)
• The face of a B-rep represents an oriented surface, there are two sides to the
surface; solid side (inside) and void side (outside), unlike faces in a wireframe.
• Many Finite Element Method (FEM) programs use this method. Allows the
interior meshing of the volume to be more easily controlled.
134
• B-rep is a method to create solid models of physical objects
• B-rep solid is represented as a volume contained in a set of faces.
• It also contains topological information that defines the relationship between
faces.
• In B-rep a solid is bounded by its surface and has its exterior and interior clearly
defined.
• As it includes such topological information, a solid is represented as a closed
space in 3D space.
• The geometry can be described by its boundaries like vertices, edges and
surfaces.
• Each face is bounded by edge and each edge is bounded by 135
A B-rep model of an object consists of faces, edges, vertices, loops, genes
(handle) and body.
136
• Loop :An ordered
alternating sequence of
vertices and edges. A loop
defines non-self intersecting
piecewise closed space curve
which may be a boundary of
a face.
• Loop is a hole in a face
137
• Body :An independent solid.
Sometimes called a shell has a set
of faces that bound single
connected closed volume. A
minimum body is a point (vortex)
which topologically has one face
one vortex and no edges.
• A point is therefore called a
seminal or singular body.
• The topological part of the data provides the relationship among its objects
such as vertices, edges and faces similar to that used in WFM
139
ADVANTAGE OF CSG OVER B-REP
1. CSG needs low storage due to the simple CSG tree structure and
primitives.
2. CSG primitives are constructed from the half-space concept.
3. It is easier to convert a CSG model to a wire frame model than to
convert a B-rep model to a wire frame model.
4. Because both CSG and B-rep use face direction (half-space or surface
normal), they can have a full “body knowledge.”
140
3. Sweep representation:
• Boundary of surface, i.e., edges are used to define a surface.
• Starts with one or more wire frame profiles & creates a solid by extruding, sweeping,
revolving these profiles.
141
142
143
SWEEP REPRESENTATION:
Advantages:
• Easier to construct complex shapes which are difficult with
primitives
• Sweep represented model can be converted to wire frame model
relatively easily
Disadvantages:
• Requires large storage space
• Complexity of the model increases for large models.
144
4. Analytical Sold Modeling (ASM) Technique:
• It is mainly developed for FEA works such as mass property calculations, composite
material modeling, & computer animation
• Does not involve orientable surfaces like B-rep and C-rep.
5. Half space representation:
• Half space blocks are used as building block.
• Half-spaces are usually unbounded geometric entities, each one of them divides the
representation space into two infinite portions, one filled with material and the other
empty.
145
SOLID MODELING BASED APPLICATION
1. Graphics:
It includes generating line drawing with or without hidden line removal,
shading, Animation, simulation
2. Design:
Mass property calculation, Interference checking, FEM modeling, kinematic
and mechanism analysis.
3. Manufacturing:
Tool path generation & verification ( i.e. CNC programming), process
planning and inspection.
4. Assembly:
To check assembly planning in FMS(Flexible Manufacturing System), vision
algorithm based on solid modeling, and robotic kinematics & dynamics driven by
solid modeling in Robotics. 146
Questions ?
147