Curve design 455.

Slides:



Advertisements
Similar presentations
Lecture Notes #11 Curves and Surfaces II
Advertisements

Interpolation A method of constructing a function that crosses through a discrete set of known data points. .
Cubic Curves CSE167: Computer Graphics Instructor: Steve Rotenberg UCSD, Fall 2006.
ICS 415 Computer Graphics Bézier Splines (Chapter 8)
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
1 Introduction Curve Modelling Jack van Wijk TU Eindhoven.
1 Curves and Surfaces. 2 Representation of Curves & Surfaces Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized.
Introduction We have dealt with polylines and mesh shapes. We want a way to describe curved shapes which will make them easy to draw.
Rational Bezier Curves
09/04/02 Dinesh Manocha, COMP258 Bezier Curves Interpolating curve Polynomial or rational parametrization using Bernstein basis functions Use of control.
1 Lecture 13 Modeling Curved Lines and Surfaces. 2 Types of Surfaces Ruled Surfaces B-Splines and Bezier Curves Surfaces of Revolution.
1 Dr. Scott Schaefer The Bernstein Basis and Bezier Curves.
Geometric Modeling Surfaces Mortenson Chapter 6 and Angel Chapter 9.
Cubic Bezier and B-Spline Curves
Curves Mortenson Chapter 2-5 and Angel Chapter 9
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
Bspline Notes Jordan Smith UC Berkeley CS184. Outline Bézier Basis Polynomials –Linear –Quadratic –Cubic Uniform Bspline Basis Polynomials –Linear –Quadratic.
RASTER CONVERSION ALGORITHMS FOR CURVES: 2D SPLINES 2D Splines - Bézier curves - Spline curves.
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.
Splines III – Bézier Curves
Curve Modeling Bézier Curves
11/19/02 (c) 2002, University of Wisconsin, CS 559 Last Time Many, many modeling techniques –Polygon meshes –Parametric instancing –Hierarchical modeling.
Interactive Graphics Lecture 9: Slide 1 Interactive Graphics Lecture 9: Introduction to Spline Curves.
(Spline, Bezier, B-Spline)
V. Space Curves Types of curves Explicit Implicit Parametric.
Introduction to Computer Graphics with WebGL
Numerical Computation
1 Dr. Scott Schaefer Smooth Curves. 2/109 Smooth Curves Interpolation  Interpolation through Linear Algebra  Lagrange interpolation Bezier curves B-spline.
Review of Interpolation. A method of constructing a function that crosses through a discrete set of known data points.
Vector Computer Graphic. Vector entities Line Circle, Ellipse, arc,… Curves: Spline, Bezier’s curve, … … Areas Solids Models.
Quadratic Surfaces. SPLINE REPRESENTATIONS a spline is a flexible strip used to produce a smooth curve through a designated set of points. We.
Chapter VI Parametric Curves and Surfaces
INTERPOLATION & APPROXIMATION. Curve algorithm General curve shape may be generated using method of –Interpolation (also known as curve fitting) Curve.
Splines IV – B-spline Curves based on: Michael Gleicher: Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
Keyframing and Splines Jehee Lee Seoul National University.
CS 376 Introduction to Computer Graphics 04 / 25 / 2007 Instructor: Michael Eckmann.
Representation of Curves & Surfaces Prof. Lizhuang Ma Shanghai Jiao Tong University.
L5 – Curves in GIS NGEN06 & TEK230: Algorithms in Geographical Information Systems by: Sadegh Jamali (source: Lecture notes in GIS, Lars Harrie) 1 L5-
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.
11/26/02(C) University of Wisconsin Last Time BSplines.
Parametric Curves CS 318 Interactive Computer Graphics John C. Hart.
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.
College of Computer and Information Science, Northeastern UniversityFebruary 27, CS U540 Computer Graphics Prof. Harriet Fell Spring 2009 Lectures.
Curves University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013 Tamara Munzner.
CS552: Computer Graphics Lecture 19: Bezier Curves.
Piecewise Polynomial Parametric Curves Sun-Jeong Kim.
Object Modeling: Curves and Surfaces CEng 477 Introduction to Computer Graphics.
Introduction to Parametric Curve and Surface Modeling.
© University of Wisconsin, CS559 Spring 2004
Introduction to Parametric Curve and Surface Modeling
Representation of Curves & Surfaces
Parametric Curves cgvr.korea.ac.kr.
(Spline, Bezier, B-Spline)
Chapter 10-2: Curves.
© University of Wisconsin, CS559 Fall 2004
© University of Wisconsin, CS559 Spring 2004
Chapter XVII Parametric Curves and Surfaces
The Bernstein Basis and Bezier Curves
Implicit Functions Some surfaces can be represented as the vanishing points of functions (defined over 3D space) Places where a function f(x,y,z)=0 Some.
Parametric Line equations
UNIT-5 Curves and Surfaces.
Introduction to Parametric Curve and Surface Modeling
Type to enter a caption. Computer Graphics Week 10 Lecture 2.
Overview June 9- B-Spline Curves June 16- NURBS Curves
Presentation transcript:

Curve design 455

Parametric curves as trajectories We can interpret a parametric equations of a curve as time-trajectory of a point in the plane x=x(t) y=y(t) t=tmiddle t=tend t=tstart

Smoothness of Motion The velocity v(t) characterize the direction and speed of the movement v(t)

Tangent line The tangent line to curve P(t) at t=t0 can be given in parametric form L(u) having parameter u. L(u)= P(t0) + v(t0)u

Normal direction The normal direction to curve P(t) at t=t0 can be expressed as n(t0)= vperp(t0)=(-dy/dt,dx/dt)t=t0

Parametric Continuity P(t) is k-smooth in [a,b] if all derivatives of the curve, up to the kth, exist and are connected. k-th degree polynomials a0 + a1t + a2t2 + ... + aktk are k-smooth

Interactive Curve Design User defines the set of control points to create a curve

The interactive design process Lay down the initial control points Use the algorithm to generate the curve If the curve is satisfactory, stop Adjust some control points Go to step 2

Polynomial Approximation Approximation of points P0, P1,... , Pk Blending polynomials B0(t),B1(t),..., Bk(t) Intermediate points – affine combinations P(t)=P0*B0(t)+P1*B1(t)+...+Pk*Bk(t)

Approximation of points Bezier curves – Bernstein polynomials B-splines – cubic B-spline polynomials

Bezier Curve de Casteljeau Algorithm A(t)=(1-t)P0 + t P1 B(t)=(1-t)P1+ t P2 P(t)=(1-t)A + t B =(1-t)2P0 +2 t(1-t) P1+ t2P2 P B A

Bezier Curve Approximation of 4 points P0, P1, P2, P3 P(t)=(1-t)3P0+3(1-t)2t P1+3(1-t) t2 P2+t3P3

Bezier Curve Approximation of 4 points P0, P1, P2, P3 Bernstein polynomials B0(t)=(1-t)3, B1(t)=3t(1-t)2, B2(t)= 3t2(1-t), B3(t)= t3 Intermediate points – affine combinations P(t)=P0*B0(t)+P1*B1(t)+P2*B2(t)+P3*B3(t)

Bezier Curve Convex hull property B0(t)+B1(t)+B2(t)+B3(t)=1 the curve is inside of the convex hull of control points – convex combination Interpolation P(0)=P0*B0(0)= P0 P(1)=P3*B3(1)= P3 Bezier spline interpolates end points of control polygon

Bezier Curve Matrix form (1, t, t2, t3)Bez(P0, P1, P2, P3)T 1 0 0 0 -3 3 0 0 3 -6 3 0 -1 3 -3 1 Bez =

Tangent to Bezier curve Direction of the tangent vector at point P(t0): d(t0)=[¶x/ ¶t, ¶y/ ¶t, ¶z/ ¶t]t=t0 Equation of the tangent at point P(t0): q(u) = P(t0) + u* d(t0) Tangent at end points q0= P0 + u* (P1 - P0) q3= P3 + u* (P3 – P2)

Example Find Bezier-spline curve that is defined by the control polygon of points P0, ,, P3. P0=(3, -3), P1=(5, -2), P2=(5, 2), P3=(3, 3). a) Find the equations of the curve. b) Find the tangent line to the curve at the point corresponding to the value of parameter t=1.0 .

Example Matrix form (1, t, t2, t3)Bez(P0, P1, P2, P3)T 1 0 0 0 -3 3 0 0 3 -6 3 0 -1 3 -3 1 3 5 (1,t, t2, t3) = 3 + 6t - 6t2= x(t) -3 +3t +9t2 – 6t3 = y(t)

B-spline Approximation of 4 points P0, P1, P2, P3 Basic polynomials B0(t)=1/6* (1-t)3, B1(t)= 1/6* (4-6t2+3t3), B2(t)= 1/6* (1+3t+3t2-3t3), B3(t)= 1/6* t3 Intermediate points P(t)=P0*B0(t)+P1*B1(t)+P2*B2(t)+P3*B3(t)

B-spline Matrix form (1, t, t2, t3)Bspline(P0, P1, P2, P3)T 1 4 1 0 -3 0 3 0 3 -6 3 0 -1 3 -3 1 Bspline = 1/6*

Properties of B-splines Convex hull property – sum of blending functions equal to 1. Not an interpolation ( none of control points lies on the spline curve) Smooth approximation – tangent at point Pi(1) has the same direction as tangent at Pi+1(0).

Knot Vector Multiply knots to force interpolation (0, 0, 0, 1, 2, 3, 4, 5, 5, 5) end points are interpolated. Repeating point in the sequence means its “larger” weight (0, 1, 2, 3, 3, 3, 4, 5) B-spline passes through point P3.