1 / 37

Curve Modeling NURBS

Curve Modeling NURBS. Dr. S.M. Malaek Assistant: M. Younesi. Motivation. Motivation. We need more control over the curve. Motivation. Design Sketch. Motivation. Rendered. Motivation. Final Physical Product. Motivation. Different weights of control points.

cybele
Download Presentation

Curve Modeling NURBS

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. Curve ModelingNURBS Dr. S.M. Malaek Assistant: M. Younesi

  2. Motivation

  3. Motivation We need more control over the curve

  4. Motivation Design Sketch

  5. Motivation Rendered

  6. Motivation Final Physical Product

  7. Motivation • Different weights of control points

  8. It is hard to product exact circle with B-spline. • Circles can only be represented with rationalfunction(i.e., functions that are quotients of two polynomials). four closed B-spline curves with 8 control points: Degree 3 Degree 10 Degree 5 Degree 2 Motivation

  9. Motivation • ‍Circles, ellipses and many other curves that cannot be represented by polynomials. • we need an extension to B-spline curves.

  10. Motivation • ‍Generalize B-splines to rational curves using homogeneous coordinates: Non-Uniform Rational B-Splines (NURBS)

  11. NURBS • ‍Different weights of Pi, to have different attraction factors. Wi=1 W1=0.4 W3=3.0

  12. NURBS • ‍Different weights of Pi, to have different attraction factors. W0=W2=W3=W5=1, W1=W4=4 Wi=1

  13. NURBS • ‍B-spline Curve:Given n+1 control points P0, P1, ..., Pn and knot vector U = { u0, u1, ..., um } of m+1 knots, the B-spline curve of degree p: Multiply the coordinates of Pi with a weight w B-Spline Curve in homogeneous coordinate

  14. NURBS

  15. NURBS • ‍‍Convert it back to Cartesian coordinate by dividingCw(u) with the fourth coordinate:

  16. Two Immediate Results

  17. Two Immediate Results • ‍‍If all weights are equal to 1, a NURBS curve reduces to a B-spline curve. • NURBS Curves are Rational.

  18. Properties of NURBS Basis Function

  19. Properties of NURBS Basis Function • ‍Ri,p(u) is a degree p rational function in u • Nonnegativity -- For all iandp, Ri,p(u) is nonnegative • Local Support -- Ri,p(u) is a non-zero on [ui,ui+p+1) • On any knot span[ui, ui+1)at mostp+1 degree p basis functions arenon-zero. • Partition of Unity -- The sum of all non-zero degree p basis functions on span [ui, ui+1) is 1:

  20. Properties of NURBS Basis Function • If the number of knots is m+1, the degree of the basis functions is p, and the number of degree pbasis functions is n+1, then m = n + p + 1 : • Basis function Ri,p(u) is a composite curve of degree p rational functions with joining points at knots in [ui, ui+p+1 ) • At a knot of multiplicity k, basis function Ri,p(u) isCp-kcontinuous. • If wi = c for all i, where c is a non-zero constant, Ri,p(u) = Ni,p(u)

  21. Properties of NURBS Curves

  22. Properties of NURBS Curves • ‍NURBS curve C(u) is a piecewise curve with each component a degree p rational curve. • Equality m = n + p + 1 must be satisfied . • A clamped NURBS curve C(u) passes through the two end control points P0 and Pn • Strong Convex Hull Property • Local Modification Scheme • C(u) is Cp-k continuous at a knot of multiplicity k • B-spline Curves and Bézier Curves Are Special Cases of NURBS Curves

  23. Properties of NURBS Curves • ‍Modifying Weights:increasing the value ofwi will pull the curve toward control pointPi • a NURBS curve of degree 6 and its NURBS basis functions. The selected control point is P9.

  24. Properties of NURBS Curves • ‍Modifying Weights:decreasing the value of wiwill push the curve away from control pointPi ‍If a weight becomes zero, the coefficient of Pi is zero and, control point Pi has no impact on the computation of C(u) for any u(i.e., Pi is "disabled").

  25. Properties of NURBS Curves • A NURBS curve of degree 6 defined by 9 control points (n = 8) and 16 knots (m = 15). The selected control point is P4. Since the coefficient of P4, N4,6(u), is non-zero on [u4, u4+6+1) = [0,1), changingw4 affects the entire curve!

  26. Rational Bézier Curves

  27. Rational Bézier Curves • ‍We have learned that projecting a 4-dimensional B-spline curve to hyperplane w=1 yields a 3-dimensional NURBS curve. What if this B-spline curve is a Bézier curve? The result is aRational Béziercurve!

  28. Rational Bézier Curves • ‍Since a rational Bézier curve is a special case of NURBS curves, rational Bézier curves satisfy all important properties that NURBS curves have. • since there is no internal knots, rational Bézier curves do not have the local modification property, which means modifying a control point or its weight will cause a global change

  29. Rational Bézier Curves Modifying the weight of a control point will push or pull the curve away from or toward the control point.

  30. Rational Bézier Curves: Conic Sections

  31. Rational Bézier Curves: Conic Sections • ‍we use rational Bézier curve of degree 2, the coefficients are:

  32. Rational Bézier Curves: Conic Sections • ‍The equation of this rational Bézier curve of degree 2 is : P0=1 P1=w P2=1

  33. Rational Bézier Curves: Conic Sections P0=1 P1=w P2=1

  34. Rational Bézier Curves: Conic Sections ‍‍Circular Arcs and Circles • ‍‍Weights w is equal to the sine of the half ngle at control point P1

  35. Rational Bézier Curves: Conic Sections ‍‍Quarter Circle: • ‍‍P1=90º, a=45º,

  36. Rational Bézier Curves: Conic Sections ‍1/3 Circle: • ‍‍P1=60º, a=30º,

  37. Rational Bézier Curves: Conic Sections ‍Full Circle:

More Related