Computer Aided Design (CAD) : January 16, 2007
Computer Aided Design (CAD) : January 16, 2007
810
Engineering Design and Rapid Prototyping
Lecture 3a
Instructor(s)
16.810 3
Course Flow Diagram (2007)
Learning/Review Problem statement Deliverables
(A) Requirements
Design Intro / Sketch Hand sketching and Interface
Document
CAD Introduction Initial CAD design
(B) Hand Sketch
FEM/Solid Mechanics FEM analysis
Parts Fabrication
Fabrication,
Assembly, Testing Assembly (D) Manufacturing
and Test Report
Test with Cost Estimate
+ Guest Lectures
Final Review (E) CDR Package
16.810 4
What is CAD?
16.810 5
Basic Elements of a CAD System
Input Devices Main System Output Devices
Computer
Keyboard CAD Software
Hard Disk
Mouse Database
Ref: menzelus.com
Network
Printer
CAD keyboard Plotter
Templates
Space Ball
Human Designer
16.810 6
Brief History of CAD
1957 PRONTO (Dr. Hanratty) – first commercial numerical-
control programming system
1960 SKETCHPAD (MIT Lincoln Labs)
Early 1960’s industrial developments
General Motors – DAC (Design Automated by Computer)
McDonnell Douglas – CADD
Early technological developments
Vector-display technology
Light-pens for input
Patterns of lines rendering (first 2D only)
1967 Dr. Jason R Lemon founds SDRC in Cincinnati
1979 Boeing, General Electric and NIST develop IGES
(Initial Graphic Exchange Standards), e.g. for transfer of
NURBS curves
Since 1981: numerous commercial programs
Source: http://mbinfo.mbdesign.net/CAD-History.htm
16.810 7
Major Benefits of CAD
Productivity (=Speed) Increase
Automation of repeated tasks
Doesn’t necessarily increase creativity!
Insert standard parts (e.g. fasteners) from database
Supports Changeability
Don’t have to redo entire drawing with each change
EO – “Engineering Orders”
Keep track of previous design iterations
Communication
With other teams/engineers, e.g. manufacturing, suppliers
With other applications (CAE/FEM, CAM)
Marketing, realistic product rendering
Accurate, high quality drawings
Caution: CAD Systems produce errors with hidden lines etc…
Some limited Analysis
Mass Properties (Mass, Inertia)
Collisions between parts, clearances
16.810 8
Generic CAD Process
Engineering Sketch Start
Annotations
Dimensioning CAD file
Drawing (dxf)
x.x Verification Output
IGES file
16.810 9
Example CAD A/C Assembly
Loft
Frames
Aft Decks
16.810 10
Vector versus Raster Graphics
Raster Graphics .bmp - raw data format
Grid of pixels
No relationships between
pixels
Resolution, e.g. 72 dpi
(dots per inch)
Each pixel has color, e.g.
8-bit image has 256
colors
16.810 11
Vector Graphics
.emf format
CAD Systems use
vector graphics
16.810 13
Some CAD-Theory
Geometrical representation
(1) Parametric Curve Equation vs.
Nonparametric Curve Equation
16.810 14
Curve Equations
Two types of equations for curve representation
(1) Parametric equation
x, y, z coordinates are related by a parametric variable (u or θ )
(2) Nonparametric equation
x, y, z coordinates are related by a function
x = R cos θ , y = R sin θ (0 ≤ θ ≤ 2π )
Nonparametric equation
x2 + y 2 − R2 = 0 (Implicit nonparametric form)
16.810 15
Curve Equations
Two types of curve equations
(1) Parametric equation Point on 2-D curve: p = [ x(u ) y (u )]
Point on 3-D surface: p = [ x(u ) y (u ) z (u )]
u : parametric variable and independent variable
y = ± R2 − x2
16.810 16
Parametric Equations –
Advantages over nonparametric forms
1. Parametric equations usually offer more degrees of freedom for
controlling the shape of curves and surfaces than do nonparametric forms.
e.g. Cubic curve
Parametric curve: x = au 3 + bu 2 + cu + d
y = eu 3 + fu 2 + gx + h
Nonparametric curve: y = ax 3 + bx 2 + cx + d
* Use of a higher degree causes small oscillations in curves and requires heavy
computation.
P (u ) = [ x(u ) y (u ) z (u )]
= a0 + a1u + a 2u 2 + a3u 3 (0 ≤ u ≤ 1) START END
(u = 0) (u = 1)
a 0 , a1 , a 2 , a3 : Algebraic vector coefficients
16.810 18
Hermite Curves
P(u ) = a0 + a1u + a 2u 2 + a3u 3 (0 ≤ u ≤ 1)
Instead of algebraic coefficients, let’s use the position vectors and the
tangent vectors at the two end points!
Blending functions ⎡ P0 ⎤
⎢P ⎥
3 ⎢
1 ⎥
P(u ) = [1 − 3u 2 + 2u 3 3u 2 − 2u 3 u − 2u 2 + u 3 − u + u ]⎢ ′⎥
2
: Hermit curve
⎢ P0 ⎥
⎢P′ ⎥
No algebraic coefficients ⎣ 1⎦
P , P ′ , P , P ′ : Geometric coefficients
0 0 1 1
* Bezier Curve can control curve shape more easily using several control
points (Bezier 1960)
n
⎛n⎞ ⎛n⎞ n!
P(u ) = ∑ ⎜ ⎟ u i (1 − u ) n −i Pi , where ⎜ ⎟ =
i =0 ⎝ i ⎠ ⎝ i ⎠ i !(n − i )!
Pi : Position vector of the i th vertex (control vertices)
P2 Control vertices
P1
* Number of vertices: n+1
Control polygon
n=3 (No of control points)
* Number of segments: n
-The tangent vector at the starting point of the curve has the same
direction as the first segment of the polygon.
16.810 22
Two Drawbacks of Bezier curve
(1) For complicated shape representation, higher degree Bezier curves are
needed.
Æ Oscillation in curve occurs, and computational burden increases.
(2) Any one control point of the curve affects the shape of the entire curve.
Æ Modifying the shape of a curve locally is difficult.
(Global modification property)
Desirable properties :
1. Ability to represent complicated shape with low order of the curve
2. Ability to modify a curve’s shape locally
B-spline curve!
16.810 23
B-Spline Curve
n * Developed by Cox and Boor (1972)
P(u ) = ∑ N i ,k (u )Pi
i =0
where
⎧0 0≤i<k
Pi : Position vector of the ith control point ⎪
ti = ⎨ i − k + 1 k ≤i≤n
(u − ti ) N i ,k −1 (u ) (ti + k − u ) N i +1,k −1 (u )
N i ,k (u ) = + ⎪n − k + 2 n <i ≤ n+k
ti + k −1 − ti ti + k − ti +1 ⎩
(Nonperiodic knots)
⎧1 ti ≤ u ≤ ti +1
N i ,1 (u ) = ⎨
⎩0 otherwise
k: order of the B-spline curve The order of curve is independent of the number
of control points!
n+1: number of control points
16.810 24
B-Spline Curve
Example
Advantages
(1) The order of the curve is independent of the number of control points (contrary to
Bezier curves)
- User can select the curve’s order and number of control points separately.
- It can represent very complicated shape with low order
(2) Modifying the shape of a curve locally is easy. (contrary to Bezier curve)
- Each curve segment is affected by k (order) control points. (local modification property)
16.810 25
NURBS (Nonuniform Rational B-Spline) Curve
∑hP N (u )
⎛ n
⎞
∑
i i i ,k
P (u ) = i =0
⎜ B-spline : P (u ) = P N
i i ,k (u ) ⎟
n
⎝ ⎠
∑h N
i =0
i i ,k (u )
i =0
16.810 26
Advantages of NURBS Curve over B-Spline Curve
(2) NURBS can exactly represent the conic curves - circles, ellipses, parabolas, and
hyperbolas (B-spline can only approximate these curves)
(3) Curves, such as conic curves, Bezier curves, and B-spline curves can be
converted to their corresponding NURBS representations.
16.810 27
Summary
(1) Parametric Equation vs. Nonparametric Equation
16.810 28
SolidWorks
SolidWorks
Most popular CAD system in education
Will be used for this project
Do Self-Introduction via 16.810 User
Manual
See also
http://www.solidworks.com (Student Section)
16.810 29