Beruflich Dokumente
Kultur Dokumente
DESIGN
(As per ANNA UNIVERSITY Revised Syllabus)
P. Vijayalakshmi
Y.V.S. Karthick
Books will be door delivered after payment into AIR WALK PUBLICATIONS
A/c No. 801620100001454 (IFSC: BKID0008016) Bank of India, Santhome
branch, Mylapore, Chennai - 4 (or)
Typeset by: aksharaa muthra aalayam, Chennai - 18. Ph.: 044-2436 4303
Contents C.3
SYLLABUS
ME6501 COMPUTER AIDED DESIGN
Total : 45 Periods
C.1 Computer Aided Design
Contents
2. GEOMETRIC MODELING
3. VISUAL REALISM
4. ASSEMBLY OF PARTS
5. CAD STANDARDS
1.1 INTRODUCTION
The present century is known for rapid development
in the fields of computer in both hardware and software.
It has become the most important tool in all technological
developments. The computers are becoming larger in
memory and faster in computation speed. With the
advancement of very large scale integration technology,
computer hardware is gradually getting cheaper and now
they are within the financial range of most of the
industries/organizations. The entry of computers in design
and manufacturing has led to the emergence of new areas
known as Computer Aided Design (CAD) and Computer
Aided Manufacturing (CAM). Traditionally design and
manufacturing are two distinct and separate activities.
However, the integration of CAD/CAM system is a boon for
the design and manufacturing of engineering products. The
term CIM (Computer Integrated Manufacturing) is
associated with the application of computers to the
manufacturing of products starting from the drawing office
to the machine tools on production floor, and assembly shop
to the quality control department, and stores department
for shipping, and finally to the dealers for marketing.
1.2 Computer Aided Design www.airwalkpublications.com
D e sign P ro cess
C u stom er D ra fting
Pro du ct
Feed B ack D e sign An d
C o ncept
D o cum enta tio n
M anufacturing Process
Pro cess
Planning
O rd er N ew
Eq uipm e nt
a nd Tooling
Manufacturing process
The process planning specifies the sequence of
production operations required to make the product. New
equipment and tools must sometimes be acquired to
produce the product.
The next stage is scheduling which provides a plan
that commits the company to the manufacture of certain
quantities of the product by certain dates.
Once all of these plans are formulated, the product
goes into production, followed by quality testing, and
delivery to the customer.
Computer Aided Design 1.3
Pro du ct D e sign
D ra fting
C o ntrol En gineering
Co mp uter
C u stom ers O rd er N ew
Pro cess Aided
a nd Eq uipm e nt
Planning Pro cess
M a rkets a nd Too ling
Planning
R e cognition of N eeds
An alysis an d O ptimization
D e sign R eview
1. Recognition of need
The design process involves initially in identifying the
need. The product begins with a need based on market
survey and customer’s demand. The data is collected via
observation and/or a detailed survey. There may be:
Adoption of existing design
Modifications in the existing design
Completely new design
Computer Aided Design 1.7
2. Problem definition
In the problem definition, the designer’s task is
defined and criterion for the performance of designed
product is specified. The designer collects different
information about the existing products of similar type,
about the market potential, about the manufacturing
constraints, about the legal requirements and standards
and so on. The specifications, constraints and design
criteria may be:
3. Synthesis
Synthesis is nothing but the conceptualization.
Synthesis forms a design solution to satisfy the need. The
end goal of synthesis is a conceptual design of the product.
In this phase, sketches of different components and
assembly are drawn. The feedback received from the
marketing professionals also help to build up a strong
concept of design. Synthesis requires a sound technical
background, creativity and experiences of the designer.
5. Design review
Design review is nothing but evaluation. Evaluation
means measuring the design against the specifications set
in the problem definition. It usually involves prototype
building and testing of the product to ascertain operating
performance or factors such as reliability. The result of
evaluation phase may yield a satisfactory design or it may
lead to further modifications in the design parameters. The
changes into the prototype assembly are incorporated
Computer Aided Design 1.9
6. Presentation
Presentation means drafting. The final stage in design
process is the presentation and documentation of the design
on paper. This forms an interface between the design and
the manufacture.
In sp e ction
Fu nc tion
R eq uirem e nts
D efin ition
P rod uct
D e finition
C o ncu rren t P rod uct
D evelopm en t C o nce pt
E rrors, C ha ng es
Em bod im ent A nd
Tea ms
Fast C h an ges C o rre ctio ns
D e ta il
S hort Le ad Tim e
H ig her Q u ality P roce ss
D e finitio n
Finish
P rod uction a nd
D istrib ution
C E L ife C ycle Tim e
Tim e S aved
Fig:1.7 Sequential Versu s C oncurrent P roduct develop ment from Start to Finish
www.airwalkpublications.com
Computer Aided Design 1.15
3. To improve communications
Better documentation of the design, fewer drawing
errors with greater legibility will be provided by CAD.
P ro blem
D efinition
G eo m etric
S ynthe sis
M od elin g
D esign R e view
E valua tion
A nd Evalu a tio n
A uto ma ted
P re sen tatio n D ra fting
Applications Detail
1. Structural CAD analyzes the turbulent flow
design of Aircraft pattern in aerospace structures
1.20 Computer Aided Design www.airwalkpublications.com
Applications Detail
2. Aircraft The complex situation during the
simulation flight can be simulated in flight
simulator using the CAD software,
which avoids lengthy delay, saves
fuel cost and provides better than
pilots.
3. Real time It is possible to study the real-time
simulation behaviour and inspection of critical
parts subjected to repeated stresses
due to mechanical loading.
4. Automobile CAD provides various types of space
industries curves for the aerodynamic design of
automobile surfaces.
5. Architectural CAD has tremendous scope in
design architectural design of bridges,
buildings, structures, etc. It is
possible to estimate the building
materials requirements for a similar
design with different design
parameters.
6. Pipe routing CAD Design optimizes the pipe
and plan layout layout and plant layout in chemical
design plants.
7. Electronic CAD is applicable in the design of
industries Integrated circuits and printed circuit
board design used in electronic
equipment/machines.
Computer Aided Design 1.21
Applications Detail
8. Dynamic CAD design is useful for estimating
analysis of the dynamic forces, reactive forces of
mechanical systems mechanical systems at various time
intervals.
9. Kinematic Similar to dynamic force analysis,
analysis CAD estimates the kinematic
quantities such as displacement,
velocity and acceleration of various
links for different configurations of
the mechanism.
10. Mesh data The input data for FEA of a structure
preparation for consists of geometrical and
finite element mechanical properties, loading and
analysis boundary conditions, CAD system
generates the best mesh data
suitable to a particular problem. It is
possible to represent data graphically
to quickly guess the results.
Hardware:
The computer and associated peripheral equipment.
Software:
The computer program(s) running on the hardware.
1.22 Computer Aided Design www.airwalkpublications.com
Data:
The data structure created and manipulated by the
software.
CAD systems are no more than computer programs
perhaps using specialized computing hardware. The
software normally comprises a number of different elements
or functions that process the data stored in the database
in different ways. These are represented diagrammatically
in Fig. 1.9 and include elements for:
D a ta Function s
M odel
D a tab ase W orking D a ta D e finition
L ib rary U tilitie s
D a ta
D a ta B ase
M anag eme nt
Ap plicatio ns
Model definition:
For example, to add geometric elements to a model
of the form of a component.
Model manipulation:
To move, copy, delete, edit or otherwise modify
elements in the design model.
Computer Aided Design 1.23
Picture generation:
The generate images of the design model on a
computer screen or on some hard-copy device.
User interaction:
To handle commands input by the user and to present
output to the user about the operation of the system.
Database management:
For the management of files that makeup the
database.
Applications:
These elements of the software don’t modify the
design model, but use it to generate information for
valuation, analysis or manufacture.
Utilities:
Parts of the software that do not directly affect the
design model, but modify the operation of the system in
some way.
L ocal W orld
N o rm aliz ed D e vice
C o -ord in ate C o -ord in ate
C o -o rdina te C o -o rdina te
S ystem S ystem
S ystem S ystem
( C a rte sia n, ( C a rte sia n )
( x n , yn) ( x d , yd)
P o la r,S ph erica l) ( xw , yw )
1
1
P o la r C o -ordin a te
1
D isp la y
C a rte sian C o -ord in ate Floating Po int N orm alised In teg er
Floating Po int N um bers Nu m b ers Nu m b ers Nu m b ers
xw 0 xn 1 0 xd xmaxüBçJ0%
y y n ...(1.1)
where, x, y coordinates of the translated point
Given data ( 1 ,5 ) ( 4 ,5 )
T 4, 3
x 1 1; y 1 1
x 2 4; y 2 1
x 3 4; y 3 5 ( 1 ,1 ) ( 4 ,1 )
x 4 1; y 4 5 Fig.
To find
New translated rectangle
Solution
From equation (1.2)
We know that
x, y x , y T ...(1)
Expanding the equation (1) for 4 coordinate rectangle
x 1 y 1 x1 y1
x2 y 2 x2 y2
[T]
x 3 y 3 x3 y 3
x r y 4 x4 y4
1.30 Computer Aided Design www.airwalkpublications.com
x 1 y 1
5 4
x2 y 2 8 4
x 3 y 3 8 8
x 4 y 4 5 8
...(3)
Equation (3) is the New translated rectangle
Result
9 ( 5 ,8) ( 8 ,8)
8
7
N ew Transla te d
6 R ectan gle
( 1 ,5 ) ( 4 ,5 )
5
4
( 5 ,4 ( 8 ,4 )
3
2 O rig in al
R ectan gle
1
( 1 ,1 ) ( 4 ,1 )
x
1 2 3 4 5 6 7 8 9
Fig: O rigin al an d N e w Trans la ted R ectang le.
Computer Aided Design 1.31
Given data
T 3, 3
x1 1; y1 1
x2 3; y2 5
x3 1; y3 3
To find
Translate the triangle
Solution
From equation (1.2), we know that,
x, y x, y T ...(1)
Expanding the equation (1) for the triangle
x 1 y 1 x1 y1
x2 y 2 x2 y 2 [T]
x y 3 x3 y3
3 ...(2)
Substitute the given data in equation (2) so, equation
(2) becomes,
x 1 y 1 1 1
x2 y 2 3 5 [3 3]
x y 3 1 3
3
x 1 y 1 4 4
x2 y 2 6 8
x y 3 4 6
3 ...(3)
1.32 Computer Aided Design www.airwalkpublications.com
y
( 6 ,8 )
8
7
( 4 ,6 )
6 Tra ns la ted
( 3 ,5 ) Tria ng le
5
4
( 1 ,3 ) ( 4 ,4 )
3
2 O rigin al
Tria ng le
1
( 1 ,1 )
x
1 2 3 4 5 6 7 8
Fig: O riginal and New Translated Triangle
1 2
Problem 1.3: Consider the line defined by, L .
3 4
Translate the line 3 units in x - direction and 4 units in y
direction.
Given data
T 3, 4
Computer Aided Design 1.33
x1 1; y1 2
x2 3; y2 4
To find
Translate the line
Solution
x1 y1 x1 y1
x2 y2
[T]
x2
y2
...(2)
Substitute the given data in equation (2)
x1 y1 1 2
3 [3 4]
4
x2
y2
x y1 4 6
1
y 21 6 8
x2 ...(3)
Equation (3) is the new translated line coordinates.
1.34 Computer Aided Design www.airwalkpublications.com
Result
y
8 ( 6,8 )
7 Tra nslate d
L in e
6
( 4,6 )
5
4 ( 3,4 )
3 O rigin al
L in e
2
( 1,2 )
1
x
1 2 3 4 5 6 7 8
Fig: O riginal and New Translated Line
1.13.2 Scaling
Scaling of an element is used to enlarge it or reduce
its size.
A drawing can be made bigger by increasing the
distance between the points of the drawing. In general, this
can be done by multiplying the coordinates of the drawing
by an enlargement or reduction factor called scaling factor,
and this operation is called scaling.
The coordinates of an object is multiplied uniformly
by the scaling factor.
Computer Aided Design 1.35
p’
Sy x y
p
y
x
sx
Fig: 1.11. S ca lin g o f a R ectangle
Sx 0
S
0 Sy
...(1.3)
where,
S Scaling matrix
Sx Scaling in x direction
Sy Scaling in y direction
the size of the object and the object is moved towards the
origin.
If it is greater than 1, then it will enlarge the size
of the object and object is moved away from the origin.
P [x, y] [S x x, S y y]
Sx 0x
P
0 S y y ...(1.4)
(i.e)
P [S] [P]
Given data
Sx S y 2
x1 1 ; y1 2
x2 3 ; y2 4
To find
To obtain the transformation using scaling.
Computer Aided Design 1.37
Solution
Sx 0
The scaling matrix , S
0 Sy
1 2
Original line matrix AB
3 4
2 01 2
0 [A B]
2 3 4
2 4
A B are new scaled line coordinates
6 8
Results
y
9
(6,8)
8
6 N ew scaled
Line
5
(3,4)
4
(2,4)
3 O riginal
Line
2
(1,2)
x
1 2 3 4 5 6 7 8 9
1.38 Computer Aided Design www.airwalkpublications.com
1.13.3 Rotation
Rotation is also an another important transformation.
In this transformation, all the points of an object are
rotated about the origin (or) about any base point by an
angle .
For a positive angle, the object is rotated in
anticlockwise direction and viceversa.
Consider a point P in xy plane. P is rotated in the
anticlockwise direction to get new position P through an
angle of as shown in Fig. 1.12.
1
P 1 1
( x ,y )
1
x
( x, y )
P
y
1 r
r y
x
O
x
Fig:1.12 Rotation of a S quare
[x, y]
x, y
cos sin
R Rotation matrix
sin cos ...(1.6)
Given data
30
x 1 1; y 1 1
x 2 2; y 2 4
To find
Transformation of the line
Solution
We know that from equation (1.5)
x y x, y R ...(1)
where,
cos sin
R
sin cos ...(2)
Apply as 30 in equation (2)
1.40 Computer Aided Design www.airwalkpublications.com
0.866 0.500
R
0.500 0.866 ...(3)
Apply equation (3) in (1)
1 1 0.866 0.500
x y
2 4 0.500 0.866
0.366 1.366
x y
0.268 4.464
Result
(-0.2 68 ,4.464) 5
( 2,4 )
4
R otated 3
L in e O rig ina l
L in e
2
1
(0.366 ,1.36 6) ( 1,1 )
-x x
-3 -2 -1 0 1 2 3 4 5 6
Computer Aided Design 1.41
1.14.1 Translation
For a three dimensional element, the translation point
will be given as,
T m, n, p ...(1.7)
where, m, n, p are the coordinates of translation point
or increment.
1.14.2 Scaling
The scaling transformation is given by,
m 0 0
S 0 n 0
0 0 p ...(1.9)
where,
1.14.3 Rotation
For each axis, the rotation in three dimensions varies.
1.42 Computer Aided Design www.airwalkpublications.com
For Z axis
Rotation about the Z axis by angle is given by the
matrix,
cos sin 0
R z sin cos 0
0 0 1 ...(1.10)
For Y axis
Rotation about y - axis by angle is given by matrix.
cos 0 sin
Ry 0 1 0
sin 0 cos ...(1.11)
For x axis
Rotation about x - axis by angle is given by matrix,
1 0 0
Rx 0 cos sin
0 sin cos ...(1.12)
(i.e)
x xh; y yh ...(1.13)
Generally, h 1 represents a homogeneous coordinate
x, y, 1 for a point x, y in computer graphics.
y
y
h =1
x
Fig:1.13 .T he (x ,y,h) H om og en eo us C oo rdin ate Sp ace
W ith h =1 Plane
xT A B 0 x x
yT C D 0 y [T] y
1 0 0 1
1
1
...(1.14)
where,
1.6.1 Translation
The translation of homogeneous matrix is given as,
1 0 tx
[T t ] 0 1 ty
0 0 1
...(1.15)
1.16.2 Scaling
The scaling of homogeneous matrix is given by
Sx 0 0
[S ] 0 Sy 0
0 0 1 ...(1.16)
1.16.3 Rotation
For homogeneous transformation, counter clockwise
rotation (CW) in the xy plane is given by,
cos sin 0
[Tr] sin cos 0
0 0 1 ...(1.17)
1.46 Computer Aided Design www.airwalkpublications.com
cos sin 0
[T r] sin cos 0
0 0 1
...(1.18)
1.16.4 Shear
For homogeneous transformation, the shear along x -
axis is given by
1 Sh x 0
[Sh x] 0 1 0
0 0 1
...(1.19)
For homogeneous transformation shear along y
direction is given by,
1 0 0
[Sh y] Sh y 1 0
0 0 1
...(1.20)
For homogeneous transformation shear along x and
y axis is given by,
1 Sh x 0
[Sh] Sh y 1 0
0 0 1
...(1.21)
y mx b ...(1.22)
where,
m slope
y2 y 1
m
x2 x 1
...(1.23)
y
x
ymx ...(1.24)
y
x
m ...(1.25)
There are two possibilities of slope, either m 1 or
m 1.
Computer Aided Design 1.49
Case (i)
Case (ii)
Case (iii)
x k 1 x k 1 and yk 1 yk m
Case (iv)
1
y k 1 y k 1 and xk 1 xk
m
Given data
x 1 2; x 2 15
y 1 7; y 2 10
To find
Draw a straight line from given points.
Solution
x 2 x1 15 2
13
y 2 y1 10 7
3
y2 y 1
m slope
x2 x 1
3
13
0.23076
xk 1 xk 1
1.52 Computer Aided Design www.airwalkpublications.com
yk 1 yk m
(Round of)
Integer values Real values
K Integer values
xk 1 xk 1 yk 1 yk m
yk 1 yk m
0 2 – 7
1 3 7.230 7
2 4 7.46 7
3 5 7.69 8
4 6 7.92 8
5 7 8.15 8
6 8 8.38 8
7 9 8.61 9
8 10 8.84 9
9 11 9.07 9
10 12 9.3 9
11 13 9.53 10
12 14 9.76 10
13 15 9.99 10 (accurate)
11
(1 5,10)
10
8
Actual Lin e
( 2,7)
7
1
Computer Aided Design
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Fig : Po tted L ine
1.53
1.54 Computer Aided Design www.airwalkpublications.com
Problem 1.7: Digitize the line with end points A (20,10) and
B (10,18) using DDA algorithm.
Given data
x 1 20; x2 10
y 1 10; y2 18
To find:
Obtaining the line with DDA algorithm
Solution
x 2 x1 10 20 10
y 2 y1 18 10 8
y y2 y 1
slope, m
x x2 x1
8
0.80
10
It is case (iii)
xk 1 xk 1
yk 1 yk m
y k 0.80
24
22
20
(1 0,1 8 )
18
16
A c tu al line
14
12
(2 0,1 0 )
10
10 12 14 16 18 20 22 24
Fig. Plotted lin e
1.56 Computer Aided Design www.airwalkpublications.com
Input the line end points AB as x1, y1 and x2, y2
respectively.
Step: 2
Plot the first end point x1, y1 which means load the
point into the frame buffer.
Computer Aided Design 1.57
Step: 3
x x 2 x1
y y 2 y1
P o 2 y x
Step: 4
Step: 5
Step: 6
Step: 1
Input the line end points AB as x1, y1 and x2, y2
respectively.
Step: 2
Plot the first end point x1, y1 which means load the
point into the frame buffer.
Step: 3
x x 2 x1
y y 2 y1
P o 2 x y
Step: 4
Step: 5
Step: 6
Given data
x 1 18; y1 8
x 2 28; y2 16
To find
Obtain the line using Bresenham’s algorithm.
Solution
x x2 x1 28 18 10
y y2 y1 16 8 8
y 8
Slope, m 0.80
x 10
Value of Value
Decision
decision of
K parameter Next pixel
parameter next
Pk
Pk pixel
0 P0 2 y x 2 8 10 6 xk 1, yk 1 (19,9)
1 P1 P0 2 y 2 x 6 2 8 2 10 2 xk 1, yk 1 (20,10)
2 P2 P1 2 y 2 x 2 2 8 2 10 2 xk 1, yk (21,10)
3 P3 P2 2 y 2 2 8 14 xk 1, yk 1 (22,11)
4 P4 P3 2 y 2 x 14 2 8 2 10 10 xk 1, yk 1 (23,12)
5 P5 P4 2 y 2 x 10 2 8 2 10 6 xk 1, yk 1 (24,13)
6 P6 P5 2 y 2 x 6 2 8 2 10 2 xk 1, yk 1 (25,14)
7 P7 P6 2 y 2 x 2 2 8 2 10 2 xk 1, yk (26,14)
8 P8 P7 2 y 2 2 8 14 xk 1, yk 1 (27,15)
9 P9 P8 2 y 2 x 14 2.8 2 10 10 xk 1, yk 1 (28,16)
22
20
18
(2 8,1 6 )
P ixe l N o
16 B
14
y
12
A ctu al L ine
10
8
A (1 8,8 )
16 18 20 22 24 26 28 30
x P ixe l N o
Computer Aided Design 1.61
1.18 CLIPPING
Various projections of an object geometry can be
obtained by defining views. If any part of the geometry is
not inside the window, it is made invisible by the graphics
software through a process known as clipping.
A2 C lip W ind ow
A1
A3
B1
C lipp in g
B3
A4
B2
B4
Fig:1.15 C lipp ing of a o ne D im ension al Elem ent - Line
C lipp in g
Im a ge in M ap ping to M ap ping To
W orld C oo rdin ate N orm alized D evice C o ord ina te
S ystem C oordin ate S yste m S ystem
W indo w N orm alized V iew Po rt V ie w P o rt
y W ind ow - I
Vie w Po rt Vie w Po rt
I II
W ind ow - II
x
W orld C oo rd inate s D e vice C o ordin ates
Fig:1.18. (a) Different W indows on Different View ports
Vie w Po rt Vie w Po rt
I II
W ind ow
x
W orld C oo rd inate s D e vice C o ordin ates