1 / 42

Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition

Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition. Chapter 16. Figure 16.1: (a) Bernstein polynomials of degree 3: B 0,3 (u) = (1 - u) 3 , B 1,3 (u) = 3(1 - u) 2 u, B 2,3 (u) = 3(1 - u)u 2 , B 3,3 (u) = u 3 (b) A cubic Bezier curve. Figure 16.2: Mesh of

Télécharger la présentation

Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition

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. Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 16

  2. Figure 16.1: (a) Bernstein polynomials of degree 3: B0,3(u) = (1 - u)3, B1,3(u) = 3(1 - u)2u, B2,3(u) = 3(1 - u)u2, B3,3(u) = u3 (b) A cubic Bezier curve.

  3. Figure 16.2: Mesh of Boris's head (courtesy of Sateesh Malla at www.sateeshmalla.com).

  4. Figure 16.3: (a) Function fi defined on [0; 1] has support in [a’, b’] (b) Moving Pi, with associated blending function fi, changes c only between c(a’) and c(b’).

  5. Figure 16.4: (a) Parabola (b) Three-part function: one upside-down parabola and two straight.

  6. Figure 16.5: The right wing of the parabola f(u) = u2 meeting the straight left half of the x-axis smoothly at the origin.

  7. Figure 16.6: Five-part function: three parabolic and two straight parts. Joints are black points.

  8. Figure 16.7: Parameter space [0, r] with uniformly-spaced knots.

  9. Figure 16.8: First-order B-splines: (a) N0,1 (b) Non-zero parts of Ni,1, 0 ≤ i ≤ r -1, distinguished by alternate blue and black colors.

  10. Figure 16.9: Screenshot of bSplines.cpp at first order.

  11. Figure 16.10: First-order B-spline approximation – the “curve” consists of its control points.

  12. Figure 16.11: First-order B-splines each broken into an up part (dashed) N0i,1 and a down part (dotted) N1i,1. Successive Ni,1's are distinguished by color.

  13. Figure 16.12: Non-zero parts of linear B-splines. Each is an inverted V. Successive ones are distinguished by color. The down part in the first knot interval and the up part in the last are discarded. The new (truncated) parameter space is [1, r - 1].

  14. Figure 16.13: Screenshot of bSplines.cpp at second-order.

  15. Figure 16.14: Linear B-spline approximation.

  16. Figure 16.15: (a) The graphs of the two straight-line multiplying functions for N0,2, one dashed and one dotted (b) The result of the multiplication: the up part N00,2 (dashed) and the down part N10,2 (dotted).

  17. Figure 16.16: Linear B-splines each broken into an up (dashed) part N0i,2 and down (dotted) part N1i,2. Successive ones are distinguished by color.

  18. Figure 16.17: Adding N00,2 and N11,2 to make N0,3. N0,3 consists of three parts: on [0; 1] it's just N00,2, on [2; 3] it's N11,2, while in the middle, on [1; 2] it is the sum of N00,2 and N11,2.

  19. Figure 16.18: Screenshot of bSplines.cpp at third order.

  20. Figure 16.19: Non-zero parts of the quadratic B-splines; the four joints of the first one are indicated as points as well. Successive splines are distinguished by color.

  21. Figure 16.20: Quadratic B-spline approximation.

  22. Figure 16.21: Screenshot of quadraticSpline- Curve.cpp.

  23. Figure 16.22: The first cubic B-spline function N0,4.

  24. Figure 16.23: Screenshot of cubicSplineCurve1.cpp.

  25. Figure 16.24: Graphs of the functions on the RHS of Equation (16.28): Ni,m-1 and Ni+1,m-1 and their respective linear multipliers u – ti / ti+m-1 – ti and ti+m – u/ ti+m – ti+1.

  26. Figure 16.25: Non-zero parts of the first-order B-splines over a non-uniform knot vector.

  27. Figure 16.26: Non-zero parts of the linear B-splines over a non-uniform knot vector.

  28. Figure 16.27: Screenshots of bSplines.cpp over a non-uniform knot vector with a triple knot at the right end: (a) Quadratic (b) Cubic.

  29. Figure 16.28: Screenshot of quadraticSpline- Curve.cpp with one double knot and one triple knot.

  30. Figure 16.29: (a) Part of a cubic spline curve (b) With a new knot inserted.

  31. Figure 16.30: B-spline functions over the knot vector T = {0, 1, 2, 3, 3, 4, 5, …} with a double knot at 3 (distinguished inside a box).

  32. Figure 16.31: (a) First-order and (b) linear spline curves over the knot vector T = {0, 1, 2, 3, 3, 4, 5, 6, 7, …}, approximating nine control points arranged alternately in two horizontal rows. The (hollow) control point P3 is the only one missing from the first-order “curve”, which consists of the remaining eight points. The second-order curve is the polyline P0P1 … P8 minus P2P3.

  33. Figure 16.32: Screenshots of (a) quadraticSplineCurve.cpp and (b) cubicSplineCurve1.cpp over the knot vector T = {0, 1, 2, 3, 3, 4, 5, 6, 7, …} and approximating nine control points arranged in two horizontal rows.

  34. Figure 16.33: Screenshot of cubicSplineCurve1.cpp with a triple knot.

  35. Figure 16.34: Screenshots of (a) quadraticSplineCurve.cpp and (b) cubicSplineCurve1.cpp, both with knots repeated at the end to interpolate the first and last control points.

  36. Figure 16.35: Constructing the B-spline surface approximating an array of control points by sweeping a B-spline curve. The B-spline curves depicted all interpolate both end control points, which need not always be the case in practice.

  37. Figure 16.36: Screenshot of cubicSplineCurve2.cpp.

  38. Figure 16.37: Use cubicSplineCurve2.cpp to draw a man and his cat.

  39. Figure 16.38: Screenshot of bicubicSpline- Surface.cpp.

  40. Figure 16.39: Screenshot of bicubicSplineSurface- LitTextured.cpp.

  41. Figure 16.40: The loop c on the parameter space W is mapped to the loop c’ on the surface s by the parametric equations for s. Then s is trimmed by c.

  42. Figure 16.41: (a) Screenshot of trimmedBicubicBsplineSurface.cpp (b) The three trimming loops – two polygonal and one B-spline.

More Related