Splines for interpolation - PowerPoint PPT Presentation

1 / 22
About This Presentation
Title:

Splines for interpolation

Description:

Affine Transformations. Affine transformations: translation, rotation, scale. Applying the affine transformation to the control points and recalculating the ... – PowerPoint PPT presentation

Number of Views:120
Avg rating:3.0/5.0
Slides: 23
Provided by: lalea
Category:

less

Transcript and Presenter's Notes

Title: Splines for interpolation


1
Splines for interpolation
  • Bezier polynomialsUsing Splines for Surface
    Modeling

2
Hermite Curves
  • One way to design a curve segment
  • End points (P1 and P4)
  • End tangent vectors (derivatives)
  • R1 and R4
  • 4 parameters and is sufficient to define an n3
    polynomial.
  • This is the Hermite curve.

3
Specifying a Hermite Curve
4 segments P1 and P4 for each segment R1 and R4
for each segment
4
Blending function form for Hermite polynomials
B0(t)
B1(t)
B2(t)
B3(t)
Hermite Basis polynomials
5
Bézier Curves
  • Hermite curves are difficult to specify
  • Derivatives are not natural
  • Tangent vectors overlap
  • Tangent vectors are a bit long for display
  • Bézier Curves
  • Well use end points of 1/3 and 1/3 along the
    tangent vectors as control points.

6
A Bézier Curve
p1
p2
p3
p0
4 segments p0, p1, p2, and p3 for each segment
7
A Bézier Curve
p1
p2
p3
p0
8
The Control Points
  • The control points
  • p0 p(0), First end point
  • p3 p(1), Second end point
  • p1c0 1/3 c1
  • p2 c0c1c2c3 - 1/3 (c1 2c2 3c3) c0
    2/3 c1 1/3c2

9
Blending function form for Bezier polynomials
B0(t)
B1(t)
B2(t)
B3(t)
Bezier Blending polynomials Bernstein polnomials
10
Affine Transformations
  • Affine transformations translation, rotation,
    scale
  • Applying the affine transformation to the control
    points and recalculating the curve is equivalent
    to applying the transformation to the curve

11
Extended to a surface
  • Suppose the controls points were points on a
    curve?
  • Specify each control point for a curve with a
    Bézier curve
  • We need 4 sets of 4 points 16 points.

12
Example
p3 (u)
p2 (u)
p1 (u)
p0(u)
13
Bézier Surface Patches
14
Patches, control point polygon
15
Effect of control points
16
Effect of control points
17
Effect of control points
18
Effect of control points
19
Utah teapot -8 patches on the body
20
Utah teapot
21
Utah teapot 4 patches on the handle
22
Utah teapot 4 patches on the spout
Write a Comment
User Comments (0)
About PowerShow.com