Curves Mortenson Chapter 2-5 and Angel Chapter 9

Slides:



Advertisements
Similar presentations
Curves Jim Van Verth Essential Math for Games Animation Problem: want to replay stored set of transformations  Generated by.
Advertisements

Lecture Notes #11 Curves and Surfaces II
2002 by Jim X. Chen: Bezier Curve Bezier Curve.
Lecture 10 Curves and Surfaces I
Geometric Modeling Notes on Curve and Surface Continuity Parts of Mortenson, Farin, Angel, Hill and others.
Overview June 9- B-Spline Curves June 16- NURBS Curves June 30- B-Spline Surfaces.
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.
© University of Wisconsin, CS559 Spring 2004
Jehee Lee Seoul National University
B-Spline Blending Functions
1 Curves and Surfaces. 2 Representation of Curves & Surfaces Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized.
Slide 127 October 1999CS Computer Graphics (Top Changwatchai) Review of Spline Concepts Sections 10-6 to in Hearn & Baker Splines can be 2D.
Rational Bezier Curves
Modeling of curves Needs a ways of representing curves: Reproducible - the representation should give the same curve every time; Computationally Quick;
Curves Locus of a point moving with one degree of freedom
1. 2 The use of curved surfaces allows for a higher level of modeling, especially for the construction of highly realistic models. There are several approaches.
Geometric Modeling Surfaces Mortenson Chapter 6 and Angel Chapter 9.
Cubic Bezier and B-Spline Curves
A story about Non Uniform Rational B-Splines E. Shcherbakov.
Bezier and Spline Curves and Surfaces Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Modelling: Curves Week 11, Wed Mar 23
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Curves Week 13, Mon 24 Nov 2003.
Bezier and Spline Curves and Surfaces CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
COEN Computer Graphics I
Parts of Mortenson Chapter 6-9,
Curve Surfaces June 4, Examples of Curve Surfaces Spheres The body of a car Almost everything in nature.
Bresenham’s Algorithm. Line Drawing Reference: Edward Angel’s book: –6 th Ed. Sections 6.8 and 6.9 Assuming: –Clipped (to fall within the window) –2D.
Curves and Surfaces CSE3AGR - Paul Taylor Polynomials of Degree n Degree is equal to the highest exponent of a term. Higher exponents result in.
11/19/02 (c) 2002, University of Wisconsin, CS 559 Last Time Many, many modeling techniques –Polygon meshes –Parametric instancing –Hierarchical modeling.
(Spline, Bezier, B-Spline)
V. Space Curves Types of curves Explicit Implicit Parametric.
Introduction to virtual engineering Óbuda University John von Neumann Faculty of Informatics Institute of Intelligent Engineering Systems Lecture 3. Description.
Quadratic Surfaces. SPLINE REPRESENTATIONS a spline is a flexible strip used to produce a smooth curve through a designated set of points. We.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Parametric Curves.
CS 445/645 Fall 2001 Splines/Film/Animation. Final Exam Thursday, December 13 th from 7 – 10 p.m. –Room Olsson 011 You may use one sheet of notes (8.5.
Splines IV – B-spline Curves based on: Michael Gleicher: Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
Parametric Surfaces Define points on the surface in terms of two parameters Simplest case: bilinear interpolation s t s x(s,t)x(s,t) P 0,0 P 1,0 P 1,1.
Computer Graphics Representing Curves and Surfaces.
Keyframing and Splines Jehee Lee Seoul National University.
Ship Computer Aided Design MR 422. Geometry of Curves 1.Introduction 2.Mathematical Curve Definitions 3.Analytic Properties of Curves 4.Fairness of Curves.
CS 376 Introduction to Computer Graphics 04 / 25 / 2007 Instructor: Michael Eckmann.
CS 445 / 645 Introduction to Computer Graphics Lecture 23 Bézier Curves Lecture 23 Bézier Curves.
Representation of Curves & Surfaces Prof. Lizhuang Ma Shanghai Jiao Tong University.
Curves: ch 4 of McConnell General problem with constructing curves: how to create curves that are “smooth” CAD problem Curves could be composed of segments.
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Parametric Curves & Surfaces Greg Humphreys University of Virginia CS 445, Spring.
11/26/02(C) University of Wisconsin Last Time BSplines.
Parametric Curves CS 318 Interactive Computer Graphics John C. Hart.
(c) 2002 University of Wisconsin
Slide 129 October 1999CS Computer Graphics (Top Changwatchai) Bézier Curves - Results of Derivation Tangents at endpoints are equal to endpoint slopes.
Splines Sang Il Park Sejong University. Particle Motion A curve in 3-dimensional space World coordinates.
CS 325 Computer Graphics 04 / 30 / 2010 Instructor: Michael Eckmann.
Ship Computer Aided Design
Rendering Bezier Curves (1) Evaluate the curve at a fixed set of parameter values and join the points with straight lines Advantage: Very simple Disadvantages:
Curves University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013 Tamara Munzner.
CS552: Computer Graphics Lecture 19: Bezier Curves.
Introduction to Parametric Curve and Surface Modeling.
CSCI480/582 Lecture 9 Chap.2.2 Cubic Splines – Hermit and Bezier Feb, 11, 2009.
© University of Wisconsin, CS559 Spring 2004
CS5500 Computer Graphics May 11, 2006
Curve & Surface.
Representation of Curves & Surfaces
Chapter 10-2: Curves.
CS 430/536 Computer Graphics I Intro to Curves Week 4, Lecture 7
Parametric Curves.
© University of Wisconsin, CS559 Fall 2004
© University of Wisconsin, CS559 Fall 2004
CURVES CAD/CAM/CAE.
© University of Wisconsin, CS559 Spring 2004
Three-Dimensional Object Representation
Introduction to Parametric Curve and Surface Modeling
Presentation transcript:

Curves Mortenson Chapter 2-5 and Angel Chapter 9 Geometric Modeling 91.580.201 Curves Mortenson Chapter 2-5 and Angel Chapter 9

Curve Basics Curve: Locus of a point moving with 1 degree of freedom. Some types of equations to describe curves: Intrinsic No reliance on external frame of reference Explicit Value of dependent variable in terms of independent variable(s) e.g. y = f (x) Implicit e.g. f (x,y) = 0 Parametric Express value of each spatial variable in terms of an independent variable (the parameter) e.g. for parameter u in 3D: x = x (u) y = y (u) z = z (u) source: Mortenson, Angel

Intrinsic Definition No reliance on external frame of reference Requires 2 equations as functions of arc length* s: Curvature: Torsion: For plane curves, alternatively: *length measured along the curve Torsion (in 3D) measures how much curve deviates from a plane curve. Treated in more detail in Chapter 12 of Mortenson and Chapters 10, 19 of Farin. source: Mortenson

Explicit Form Value of dependent variable in terms of independent variable(s) e.g. in 2D: one y value for each x value: y = f (x) e.g. in 3D: y = f (x) and z = g (x) Axis-dependent Not guaranteed to exist e.g. for 2D circle only one half is described by: Special cases can be problematic e.g. y = mx + h is inappropriate for vertical lines source: Mortenson, Angel

Implicit Form General form: f (x,y) = 0 Examples: Axis-dependent Straight line: Ax + By + C=0 Conic curve: Ax2 + 2Bxy + Cy2 + Dx + Ey + F=0 Axis-dependent Can represent all lines and circles and more… Some implicit forms are hard to parameterize. source: Mortenson, Angel

Parametric Form Express value of each spatial variable in terms of an independent variable (the parameter) e.g. for parameter u in 3D: x = x (u) y = y (u) z = z (u) For a curve segment, typically Curve segments can be joined to form composite spline* (bendable) curves. Parametric form of a given curve is not necessarily unique. Every parametric form has an implicit form. *see Mortenson p. 105 (or Farin p. 167) for spline definition as a “minimum energy curve.” source: Mortenson, Angel

Parametric Form Vector components of pu(u): tangent vector* Vector components of pu(u): *unless otherwise noted, tangent vectors not drawn to scale. source: Mortenson

Parametric Form Advantages Allow separation of variables and direct computation of point coordinates. Accommodate all slopes. Bounded when parameter lies in a bounded interval. More degrees of freedom to control curve shape. Various forms of continuity can be enforced at curve segment join points. See Mortenson p.46 for more… source: Mortenson

Continuity at Join Points Discontinuous: physical separation Parametric Continuity Positional (C0 ): no physical separation C1 : C0 and matching first derivatives C2 : C1 and matching second derivatives Geometric Continuity Positional (G0 ) = C0 Tangential (G1) : G0 and tangents are proportional, point in same direction, but magnitudes may differ Curvature (G2) : G1 and tangent lengths are the same and rate of length change is the same source: Mortenson, Angel, Wiki

4 Typical Types of Parametric Curves Control points influence curve shape. Interpolating Curve passes through all control points. Hermite Defined by its 2 endpoints and tangent vectors at endpoints. Interpolates all its control points. Not invariant under affine transformations. Special case of Bezier and B-Spline. Bezier Interpolates first and last control points. Curve is tangent to first and last segments of control polygon. Easy to subdivide. Curve segment lies within convex hull of control polygon. Variation-diminishing. Special case of B-spline. B-Spline Not guaranteed to interpolate control points. Invariant under affine transformations. Greater local control than Bezier. source: Mortenson, Angel

Interpolating Interpolates all control points. Geometric form: Rarely used due to lack of derivative continuity at curve segment join points. cubic case with equally spaced parameter values source: Angel

Hermite Geometric form (cubic case): Hermite curves can provide C1 continuity at curve segment join points. source: Mortenson

Bernstein polynomials. Bezier Geometric form (cubic case): Bezier curves can provide C1 continuity at curve segment join points. Bernstein polynomials. n+1 = number of control points = degree + 1 Adding a control point elevates degree by 1. Convex combination, so Bezier curve points all lie within convex hull of control polygon. Rational form is invariant under perspective transformation: where hi are projective space coordinates (weights) source: Mortenson

B-Spline Geometric form (non-uniform, non-rational case), where K controls degree (K -1) of basis functions: Cubic B-splines can provide C2 continuity at curve segment join points. N ti are knot values that relate u to the control points. Uniform case: space knots at equal intervals of u. Repeated knots move curve closer to control points. Convex combination, so B-spline curve points all lie within convex hull of control polygon. Rational form (NURBS) is invariant under perspective transformation, where hi are projective space coordinates (weights). source: Mortenson

OpenGL Demo to accompany HW#2 Geometric Modeling 91.580.201 OpenGL Demo to accompany HW#2