Академический Документы
Профессиональный Документы
Культура Документы
810
16.810
Lecture 4
Instructor(s)
January 6, 2005
16.810 2
Course Concept
today
16.810 3
16.810 5
Basic Elements of a CAD System
Human Designer
16.810 6
Brief History of CAD
Vector-display technology
NURBS curves
Source: http://mbinfo.mbdesign.net/CAD-History.htm
16.810 7
Major Benefits of CAD
dim
- Construct Basic
Create lines, radii, part
Solids contours, chamfers
= extrude, rotate
Boolean Operations
Add cutouts & holes
(add, subtract, …)
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
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 12
Vector Graphics
.emf format
Unigraphics (UGS)
I-DEAS (SDRC)
16.810 14
Some CAD-Theory
Geometrical representation
16.810 15
Curve Equations
x = R cos θ , y = R sin θ (0 ≤ θ ≤ 2π )
Nonparametric equation
x2 + y 2 − R2 = 0 (Implicit nonparametric form)
16.810 16
Curve Equations
y = ± R2 − x2
16.810 17
Parametric Equations –
* Most of the equations for curves used in CAD software are of degree 3, because
two curves of degree 3 guarantees 2nd derivative continuity at the connection point
Æ The two curves appear to one.
* Use of a higher degree causes small oscillations in curve and requires heavy
computation.
16.810 19
Hermite Curves
Instead of algebraic coefficients, let’s use the position vectors and the
tangent vectors at the two end points!
Blending functions ⎡ P0 ⎤
⎢P ⎥
⎢ 1⎥
P(u ) = [1 − 3u 2 + 2u 3 3u 2 − 2u 3 u − 2u 2 + u 3 − u 2 +
u 3 ] ⎢ ′ ⎥ : Hermit curve
⎢ P0 ⎥
⎢ P ′ ⎥
No algebraic coefficients ⎣ 1⎦
P , P ′ , P , P ′ : Geometric coefficients
0 0 1 1
curve’s shape
⎡ P0 ⎤ ⎡ P(0) ⎤
⎢P ⎥ ⎢ ⎥
⎢ 1 ⎥ ⎢ P(1) ⎥
⎢ P ′ ⎥ = ⎢ P′ (0) ⎥ : Geometric coefficient matrix ⎡1 1 ⎤ Is this what you really wanted?
⎢ 0⎥ ⎢ ⎥ ⎢5 1 ⎥
⎢ P ′ ⎥ ⎢ P′ (1) ⎥ ⎢ ⎥ ⎡1 1 ⎤
⎣ 1⎦ ⎣ ⎦
⎢13 13 ⎥ ⎢ ⎥
Geometric coefficient matrix ⎢ ⎥ ⎢5 1 ⎥
⎣13 -13 ⎦
controls the shape of the curve ⎢5 5 ⎥ ⎡1 1 ⎤
⎢ ⎥
⎣5 -5 ⎦ ⎢ 5 1 ⎥
⎢ ⎥
⎢ 2 2 ⎥ ⎡1 1 ⎤
⎢ ⎥ ⎢5 1 ⎥
⎣ 2 -2 ⎦ ⎢ ⎥
⎢1 1 ⎥ ⎡1 1⎤
⎢ ⎥ ⎢5 ⎥
⎣1 -1⎦ ⎢ 1 ⎥
⎢4 0⎥
⎢ ⎥
START(1, 1) u END (5, 1) ⎣4 0⎦
(u = 0) (u = 1) dy dy / du 0
= = =0
dx dx / du 4
16.810 21
Bezier Curve
* 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 )!
P2 Control vertices
P1
* Number of vertices: n+1
Control polygon
n=3 (No of control points)
* Number of segments: n
Properties
- The curve passes through the first and last vertex of the polygon.
-The tangent vector at the starting point of the curve has the same
direction as the first segment of the polygon.
16.810 23
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 24
B-Spline Curve
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 25
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 26
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 27
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 28
Summary
16.810 29
SolidWorks Introduction
SolidWorks
Most popular CAD system in education
Will be used for this project
40 Minute Introduction by TA
http://www.solidworks.com (Student Section)
16.810 30