DOC PREVIEW
UVA CS 445 - Parametric Curves & Surfaces

This preview shows page 1-2-3-22-23-24-45-46-47 out of 47 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 47 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 47 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 47 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 47 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 47 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 47 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 47 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 47 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 47 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 47 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Parametric Curves & SurfacesOverviewCurvesMany applications in graphicsGoalsParametric curvesParametric polynomial curvesPiecewise parametric polynomialsBézier curvesBasic properties of Bézier curvesExplicit formulationMore propertiesCubic curvesMatrix formDisplaySlide 16FlatnessSplinesCatmull-Rom splinesCatmull-Rom SplinesMatrix formulationPropertiesB-splinesMatrix formulation for B-splinesCurved SurfacesSlide 26Curved Surface RepresentationsSlide 28Parametric SurfacesSurface of revolutionSwept surfaceSlide 32Piecewise Parametric SurfacesParametric PatchesSlide 35Parametric Bicubic PatchesB-Spline PatchesBezier PatchesBezier PatchesBezier SurfacesSlide 41Slide 42Drawing Bezier SurfacesSlide 44Slide 45Slide 46Blender (www.blender.nl)Greg HumphreysCS445: Intro GraphicsUniversity of Virginia, Fall 2003ParametricCurves & SurfacesGreg HumphreysUniversity of VirginiaCS 445, Spring 2002OverviewPart 1: CurvesPart 2: SurfacesPrzemyslaw PrusinkiewiczCurves•Splines: mathematical way to express curves•Motivated by “loftsman’s spline”Long, narrow strip of wood/plasticUsed to fit curves through specified data pointsShaped by lead weights called “ducks”Gives curves that are “smooth” or “fair”•Have been used to design:AutomobilesShip hullsAircraft fuselage/wingMany applications in graphics•Fonts ABC•Animation paths•Shape modeling•etc…Animation(Angel, Plate 1)Shell(Douglas Turnbull, CS 426, Fall99)Goals•Some attributes we might like to have:Predictable controlMultiple valuesLocal controlVersatilityContinuity•We’ll satisfy these goals using:PiecewiseParametricPolynomialsParametric curvesA parametric curve in the plane is expressed as:x = x(u)y = y(u)Example: a circle with radius r centered at origin:x = r cos uy = r sin uIn contrast, an implicit representation is:x2 + y2 = r2Parametric polynomial curves•A parametric polynomial curve is described:•Advantages of polynomial curvesEasy to computeInfinitely differentiableniiiuaux0)(niiiubuy0)(Piecewise parametric polynomials•Use different polynomial functionson different parts of the curveProvides flexibilityHow do you guarantee smoothness at “joints”? (continuity)•In the rest of this lecture, we’ll look at:Bézier curves: general class of polynomial curvesSplines: ways of putting these curves togetherBézier curves•Developed independently in 1960s byBézier (at Renault) deCasteljau (at Citroen)•Curve Q(u) is defined by nested interpolation:Vi’s are control points{V0, V1, …, Vn} is control polygonV0V1V2V3Q(u)Basic properties of Bézier curves•Endpoint interpolation:•Convex hull: Curve is contained within convex hull of control polygon•Symmetry0)0( VQ nVQ )1(},...,{by defined )1( },...,{by defined )(00VVuQVVuQnnExplicit formulation•Let’s indicate level of nesting with superscript j:•An explicit formulation of Q(u) is given by:•Case n=2 (quadratic):111)1(jijijiuVVuV0220100202010100111020)1(2)1( ])1[(])1)[(1( )1( )(VuVuuVuuVVuuuVVuuuVVuVuQMore properties•General case: Bernstein polynomials•Degree: polynomial of degree n•Tangents:)()1(')()0('101nnVVnQVVnQininiiuuinVuQ)1( )(0Cubic curves•From now on, let’s talk about cubic curves (n=3)•In CAGD, higher-order curves are often used•In graphics, piecewise cubic curves will doSpecified by points and tangentsAllows specification of a curve in space•All these ideas generalize to higher-order curvesMatrix formBézier curves may be described in matrix form: 321023332212030 0001003303631331 1)1(3)1(3)1()1( )(VVVVuuuVuVuuVuuVuuuinVuQininiiMBezierDisplayQ: How would you draw it using line segments?A: Recursive subdivision!V0V1V2V3DisplayPseudocode for displaying Bézier curves:procedure Display({Vi}):if {Vi} flat within thenoutput line segment V0Vnelsesubdivide to produce {Li} and {Ri}Display({Li})Display({Ri})end ifend procedureFlatnessQ: How do you test for flatness?A: Compare the length of the control polygon to the length of the segment between endpoints1||||||||03231201VVVVVVVVV0V1V2V3(…or, compare dot products…)Splines•For more complex curves, piece together Béziers•We want continuity across joints:Positional (C0) continuityDerivative (C1) continuity•Q: How would you satisfy continuity constraints?•Q: Why not just use higher-order Bézier curves?•A: Splines have several of advantages:•Numerically more stable•Easier to compute•Fewer bumps and wigglesCatmull-Rom splines•PropertiesInterpolate control pointsHave C0 and C1 continuity•DerivationStart with joints to interpolateBuild cubic Bézier between each jointEndpoints of Bézier curves are obvious•What should we do for the other Bézier control points?Catmull-Rom Splines•Catmull & Rom use:half the magnitude of the vector between adjacent CP’s•Many other formulations work, for example:Use an arbitrary constant  times this vectorGives a “tension” control Could be adjusted for each jointMatrix formulationConvert from Catmull-Rom CP’s to Bezier CP’s:Exercise: Derive this matrix.32103210 0600161001610060 61VVVVBBBBProperties•Catmull-Rom splines have these attributes:C1 continuityInterpolationLocality of controlNo convex hull property(Proof left as an exercise.)B-splines•We still want local control•Now we want C2 continuity•Give up interpolation•It turns out we get convex hull property•Constraints:Three continuity conditions at each joint j»Position of two curves same»Derivative of two curves same»Second derivatives sameLocal control»Each joint affected by 4 CPsMatrix formulation for B-splines•Grind through some messy math to get: 321023 0141030303631331 611)(VVVVuuuuQCurved Surfaces•MotivationExact boundary representation for some objectsMore concise representation than polygonal


View Full Document

UVA CS 445 - Parametric Curves & Surfaces

Documents in this Course
Lighting

Lighting

49 pages

Color

Color

20 pages

Clipping

Clipping

10 pages

Shadows

Shadows

95 pages

Color

Color

37 pages

Radiosity

Radiosity

49 pages

Clipping

Clipping

59 pages

Assign 3

Assign 3

28 pages

Splines

Splines

17 pages

Color

Color

17 pages

Load more
Download Parametric Curves & Surfaces
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Parametric Curves & Surfaces and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Parametric Curves & Surfaces 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?