Curves I
Curves I
Universidad EAFIT
[email protected]
2024
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 1 / 35
Contents
2 End
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 2 / 35
Curves and Surfaces Curves and Surfaces: The problem
When the order of the point set is not meaningful, there are two
techniques widely used: (a) polynomial interpolation and (b) statistical
equation fitting. When the order of the point sample must be respected,
parametric forms are applied.
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 3 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 4 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 5 / 35
Curves and Surfaces Curves and Surfaces: The problem
Linear interpolation
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 6 / 35
Curves and Surfaces Curves and Surfaces: The problem
Cubic interpolation
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 7 / 35
Curves and Surfaces Curves and Surfaces: The problem
With unknowns a0 , a1 , a2 , a3 , a4
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 8 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 9 / 35
Curves and Surfaces Curves and Surfaces: The problem
In statistical fitting, the designer estimates that the data set adheres to a
particular equation form (linear, quadratic, etc). Therefore the data set is
used to give the best estimation (in statistical sense) of the equation
parameters.
In contrast with polynomial interpolation, the number of samples is not
limited by the number of parameters to estimate (In a linear regression it
is necessary to estimate 2 parameters).
Statistical fitting is widely used in machine learning techniques
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 11 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 12 / 35
Curves and Surfaces Curves and Surfaces: The problem
a) interpolation b) fitting.
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 13 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 14 / 35
Curves and Surfaces Curves and Surfaces: The problem
Bézier curves
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 15 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 16 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 17 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 18 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 19 / 35
Curves and Surfaces Curves and Surfaces: The problem
Bézier curves
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 20 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 21 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 22 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 23 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 24 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 25 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 26 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 27 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 28 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 29 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 30 / 35
Curves and Surfaces Curves and Surfaces: The problem
n i
Bi,n = u (1 − u)n−i , for i = 0..n.
i
where Bi,n are known
as Bernstein basis polynomials of degree n. In the
n
previous equation, is the number of combinations of n items taken i
i
n
at a time. n and i must be nonnegative integers. Mathematically,
i
can be expressed as:
n n!
=
i i!(n − i)!
Bernstein polynomial are defined over the interval
[0, 1]
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 31 / 35
Curves and Surfaces Curves and Surfaces: The problem
These polynomials have these important properties, which hold for any
value of u, in the interval [0, 1]:
n
Bi,n = (t + (1 − t))n = 1
P
1 partition of unity:
i=0
2 Positivity: Bi,n (u) ≥ 0 ∀i ∈ 0 · · · n
3 Symmetry: Bi,n (u) = Bn−i,n (1 − u)
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 32 / 35
Curves and Surfaces Curves and Surfaces: The problem
n n
X n X
C (u) = (1 − u)n−i u i Pi = Bi,n Pi
i
i=0 i=0
C (u) = 5
0
(1 − u)5 u 0 P0 +
5
1
(1 − u)4 u 1 P1 +
5
2
(1 − u)3 u 2 P2 +
5
3
(1 − u)2 u 3 P3 +
5
4
(1 − u)1 u 4 P4 +
5
0
(1 − u)0 u 5 P5
= (1 − u)5 P0 + 5(1 − u)4 u1 P1 + 10(1 − u)3 u2 P2 + 10(1 − u)2 u3 P3 + 5(1 − u)1 u4 P4 + 5u5 P5
= B0,5 P0 + B1,5 P1 + B2,5 P2 + B3,5 P3 + B4,5 P4 + B5,5 P5
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 33 / 35
Curves and Surfaces Curves and Surfaces: The problem
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 34 / 35
End
Thank You
Juan M. Rodrı́guez P. Eng., M.Sc., and Ph.D. (EAFIT) Cad Cam 2024 35 / 35