Lec6 PDF
Lec6 PDF
Lec6 PDF
Arun Shal U B
Department of Mechanical Engineering
Govt. Engineering College Kozhikode
March 4, 2020
ME308 Computer Aided Design & Analysis Lec6 - Curve Representations
Curves - Basics
Explicit, Implicit and Parametric Representation
Algebraic and geometric forms
Straight lines, conics
Cubic splines, Bezier curves and B-spline curves.
Outline
Curves - Basics
Classification of curves
I Analytic curves
I Represented by simple mathematical equation such as a circle
or an ellipse.
I Has a fixed form and can not be modified to achieve a shape
that violates mathematical equation.
I Very compact forms to represent shapes and simplify
computation of related properties such as areas and volumes
I Examples are : - Line , Arc , Circle, Ellipse , Parabola ,
Hyperbola.
I Synthetic curves
Classification of curves
I Analytic curves
I Synthetic curves
I An interpolated curve drawn by interpolating given data points
and has a fixed form, dictated by the data points
I Greater flexibility and control of a curve shape by changing the
positions of data points.
I Examples are : - Hermite cubic spline , Bezier curve , B-spline
curve
I Implicit Representation:
I A planar curve can be represented by an implicit equation of
the form
f (x, y ) = 0
I A circle with radius r centered at the origin can be represented
in implicit form as
x 2 + y 2 = r 2 Or x 2 + y 2 − r 2 = 0
F (x, y , z) = 0, G (x, y , z) = 0
Algebraic form
Algebraic form
P(u) = a3 u 3 + a2 u 2 + a1 u + a0
P = UA
Geometric form
I The algebraic form has the drawback that it is not easy to get
an intuitive sense of the shape of the curve when choosing the
coefficients.
I The pc curve can also be defined in terms of the coordinates
and tangent vectors at the end points.
I A cubic curve defined in this way is called a Hermite cubic
curve.
Geometric form
I We have,
P(u) = a3 u 3 + a2 u 2 + a1 u + a0
I and
P0 (u) = 3a3 u 2 + 2a2 u + a1
I Using above equations, we get
P(0) = a0
P(1) = a3 + a2 + a1 + a0
P0 (0) = a1
P0 (1) = 3a3 + 2a2 + a1
Geometric form
I Which has the solution
a0 = P(0)
a1 = P0 (0)
a2 = −3P(0) + 3P(1) − 2P0 (0) − P0 (1)
a3 = 2P(0) − 2P(1) + P0 (0) + P0 (1)
+ u 3 − 2u 2 + u P0 (0) + u 3 − u 2 P0 (1)
+ u 3 − 2u 2 + u P0 (0) + u 3 − u 2 P0 (1)
Where, 0 ≤ u ≤ 1
+ u 3 − 2u 2 + u P0 (0) + u 3 − u 2 P0 (1)
F1 (u) = 2u 3 − 3u 2 + 1
F2 (u) = −2u 3 + 3u 2
F3 (u) = u 3 − 2u 2 + u
F4 (u) = u 3 − u 2
I At u = 0, F1 = 1 and F2 = F3 = F4 = 0, thus
P(0) = 1 × P(0)
I At u = 1, F2 = 1 and F1 = F3 = F4 = 0, thus
P(0) = 1 × P(0)
P0 (u) = F10 (u)P(0) + F20 (u)P(1) + F30 (u)P0 (0) + F40 (u)P0 (1)
F10 (u) = 6u 2 − 6u
F30 (u) = 3u 2 − 4u + 1
F40 (u) = 3u 2 − 2u
I The control of the curve is not very obvious from the input
data due to its global control characteristics.
I For example, changing the position of a data point or an end
slope changes the entire shape of the spline, which does not
provide the intuitive feel required for design.
ME308 Computer Aided Design & Analysis Lec6 - Curve Representations
Curves - Basics
Explicit, Implicit and Parametric Representation
Algebraic and geometric forms
Straight lines, conics
Cubic splines, Bezier curves and B-spline curves.
x = x1 + u (x2 − x1 )
y = y1 + u (y2 − y1 )
z = z1 + u (z2 − z1 )
P2 − P1
n̂ =
L
I Where, L is the length of the line,
q
L = |P2 − P1 | = (x2 − x1 )2 + (y2 − y1 )2 + (z2 − z1 )2
P = P1 + Ln̂, 0 ≤ L ≤ Lmax
L = |P − P1 |
I n̂ is the tangent vector
I For L2 ,
1 1
P = P3 + v (P4 − P3 ) = 5 + v 4
−2 2
3 + 2u = 1 + v
4 + 2u = 5 + 4v
I On solving these, we get u = −1.5 and v = −1. Substituting
u and v in L1 and L2 equations respectively, yield two different
points (0, 1, 16) and (0, 1, −4) hence the lines do not intersect.
I Circles and circular arcs are among the most common entities
used in geometric modeling.
I Circles, and circular ares together with straight lines, are
sufficient to construct many existing mechanical parts and
components in practice.
I A circle database stores its radius and center as its essential
geometric data.
x = xc + R cos u
y = yc + R sin u 0 ≤ u ≤ 2π
z = zc
x = xc + R cos u
y = yc + R sin u
xn+1 = xc + R cos(u + ∆u)
yn+1 = yc + R sin(u + ∆u)
Expanding xn+1 and yn+1 equation gives,
x = xv + Au 2
y = yv + 2Au −∞ ≤ u ≤ ∞
z = zv
yn+1 = yn + 2A∆u
zn+1 = zn
P(u) = a3 u 3 + a2 u 2 + a1 u + a0
+ u 3 − 2u 2 + u P0 (0) + u 3 − u 2 P0 (1)
Where, 0 ≤ u ≤ 1
+ u 3 − 2u 2 + u x 0 (0) + u 3 − u 2 x 0 (1)
+ u 3 − 2u 2 + u y 0 (0) + u 3 − u 2 y 0 (1)
+ u 3 − 2u 2 + u z 0 (0) + u 3 − u 2 z 0 (1)
Where, 0 ≤ u ≤ 1
ME308 Computer Aided Design & Analysis Lec6 - Curve Representations
Curves - Basics
Explicit, Implicit and Parametric Representation
Algebraic and geometric forms
Straight lines, conics
Cubic splines, Bezier curves and B-spline curves.
3
X
P(u) = Pi Bi,3 (u), 0≤u≤1
i=0
3
X
P(u) = Pi Bi,3 (u), 0≤u≤1
i=0
3
X
P(u) = Pi Bi,3 (u), 0≤u≤1
i=0
B-Spline Curves
B-Spline Curves
I The Bezier-curve produced by the Bernstein basis function has
two major limitations.
I Degree of curve is fixed by the number of control points
I There is no local control (change of one control point affects
the whole curve)
I B-spline generates a single piecewise parametric polynomial
curve through any number of control points with the degree of
the polynomial selected by the designer.
I B-spline curves have the flexibility of choosing the degree of
the curve irrespective of the number of control points.
I With four control points, it is possible to get a cubic Bézier
curve, while with B-spline curve one can get a linear, quadratic
or cubic curve.
ME308 Computer Aided Design & Analysis Lec6 - Curve Representations
Curves - Basics
Explicit, Implicit and Parametric Representation
Algebraic and geometric forms
Straight lines, conics
Cubic splines, Bezier curves and B-spline curves.
B-Spline Curves
B-Spline Curves
B-Spline Curves
Bezier Vs B-Spline
I Bezier Curve (n = 5)
I B-Spline curve (n = 5, k = 3)
Thank You...
Visit this link to download all presentations...
http://bit.ly/me308cada