1 / 33

CS 445/645 Fall 2001

CS 445/645 Fall 2001. Hermite and B é zier Splines. Specifying Curves. Control Points A set of points that influence the curve’s shape Knots Control points that lie on the curve Interpolating Splines Curves that pass through the control points (knots) Approximating Splines

casey
Download Presentation

CS 445/645 Fall 2001

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS 445/645Fall 2001 Hermite and Bézier Splines

  2. Specifying Curves • Control Points • A set of points that influence the curve’s shape • Knots • Control points that lie on the curve • Interpolating Splines • Curves that pass through the control points (knots) • Approximating Splines • Control points merely influence shape

  3. Piecewise Curve Segments • One curve constructed by connecting many smaller segments end-to-end • Continuity describes the joint

  4. Parametric Cubic Curves • In order to assure C2 continuity, curves must be of at least degree 3 • Here is the parametric definition of a spline in two dimensions

  5. Parametric Cubic Splines • Can represent this as a matrix too

  6. Coefficients • So how do we select the coefficients? • [a b c d] and [e f g h] must satisfy the constraints defined by the knots and the continuity conditions

  7. Hermite Cubic Splines • An example of knot and continuity constraints

  8. Hermite Cubic Splines • One cubic curve for each dimension • A curve constrained to x/y-plane has two curves:

  9. Hermite Cubic Splines • A 2-D Hermite Cubic Spline is defined by eight parameters: a, b, c, d, e, f, g, h • How do we convert the intuitive endpoint constraints into these eight parameters? • We know: • (x, y) position at t = 0, p1 • (x, y) position at t = 1, p2 • (x, y) derivative at t = 0, dp/dt • (x, y) derivative at t = 1, dp/dt

  10. Hermite Cubic Spline • We know: • (x, y) position at t = 0, p1

  11. Hermite Cubic Spline • We know: • (x, y) position at t = 1, p2

  12. Hermite Cubic Splines • So far we have four equations, but we have eight unknowns • Use the derivatives

  13. Hermite Cubic Spline • We know: • (x, y) derivative at t = 0, dp/dt

  14. Hermite Cubic Spline • We know: • (x, y) derivative at t = 1, dp/dt

  15. Hermite Specification • Matrix equation for Hermite Curve t3 t2 t1 t0 t = 0 p1 t = 1 p2 t = 0 r p1 r p2 t = 1

  16. Solve Hermite Matrix

  17. Spline and Geometry Matrices MHermite GHermite

  18. Resulting Hermite Spline Equation

  19. Demonstration • Hermite

  20. Sample Hermite Curves

  21. Blending Functions • By multiplying first two components, you have four functions of ‘t’ that blend the four control parameters

  22. Hermite Blending Functions • If you plot the blending functions on the parameter ‘t’

  23. Bézier Curves • Similar to Hermite, but more intuitive definition of endpoint derivatives • Four control points, two of which are knots

  24. Bézier Curves • The derivative values of the Bezier Curve at the knots are dependent on the adjacent points • The scalar 3 was selected just for this curve

  25. Bézier vs. Hermite • We can write our Bezier in terms of Hermite • Note this is just matrix form of previous equations

  26. Bézier vs. Hermite • Now substitute this in for previous Hermite

  27. Bézier Basis and Geometry Matrices • Matrix Form • But why is MBezier a good basis matrix?

  28. Bézier Blending Functions • Look at the blending functions • This family of polynomials is calledorder-3 Bernstein Polynomials • C(3, k) tk (1-t)3-k; 0<= k <= 3 • They are all positive in interval [0,1] • Their sum is equal to 1

  29. Bézier Blending Functions • Thus, every point on curve is linear combination of the control points • The weights of the combination are all positive • The sum of the weights is 1 • Therefore, the curve is a convex combination of the control points

  30. Bézier Curves • Will always remain within bounding region defined by control points

  31. Bézier Curves • Can form an approximating spline for n points • p(u) = Snk=0pkBEZk,n(u), 0<=u<=1 • BEZk,n(u)=C(n,k)uk(1-u)n-k • Alternatively, piecewise combination of lower-degree polys

  32. Bézier Curves • Can model interesting shapes by repeating points • Three in a row = straight line • First = last = closed curve • Two in a row = higher weight

  33. Bézier Curves • Bezier

More Related