Type to enter a caption. Computer Graphics Week 10 Lecture 2.

Slides:



Advertisements
Similar presentations
SI23 Introduction to Computer Graphics
Advertisements

Lecture Notes #11 Curves and Surfaces II
Lecture 10 Curves and Surfaces I
ICS 415 Computer Graphics Bézier Splines (Chapter 8)
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.
Dr. S.M. Malaek Assistant: M. Younesi
1 Curves and Surfaces. 2 Representation of Curves & Surfaces Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized.
Bezier Curves and Splines David Eno MAT 499 Fall ‘06.
Slide 127 October 1999CS Computer Graphics (Top Changwatchai) Review of Spline Concepts Sections 10-6 to in Hearn & Baker Splines can be 2D.
Informationsteknologi Monday, December 10, 2007Computer Graphics - Class 161 Today’s class Curve fitting Evaluators Surfaces.
Curves Chiew-Lan Tai.
Curves Chiew-Lan Tai. Curves 2 Reading Required Hearn & Baker, 8-8 – 8-10, 8-12 Foley, 11.2.
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.
Bezier and Spline Curves and Surfaces Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Computer Graphics 12: Spline Representations
Modelling: Curves Week 11, Wed Mar 23
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.
Curve Surfaces June 4, Examples of Curve Surfaces Spheres The body of a car Almost everything in nature.
Splines III – Bézier Curves
Computer Graphics Lecture 13 Curves and Surfaces I.
Curve Modeling Bézier Curves
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.
11/19/02 (c) 2002, University of Wisconsin, CS 559 Last Time Many, many modeling techniques –Polygon meshes –Parametric instancing –Hierarchical modeling.
19/13/ :20 UML Graphics II Parametric Curves and Surfaces Session 3.
CS 376 Introduction to Computer Graphics 04 / 23 / 2007 Instructor: Michael Eckmann.
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
Spline Representations
Curves.
Quadratic Surfaces. SPLINE REPRESENTATIONS a spline is a flexible strip used to produce a smooth curve through a designated set of points. We.
Curves. First of all… You may ask yourselves “What did those papers have to do with computer graphics?” –Valid question Answer: I thought they were cool,
Chapter 4 Representations of Curves and Surfaces.
June D Object Representation Shmuel Wimer Bar Ilan Univ., School of Engineering.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Parametric Curves.
Splines IV – B-spline Curves based on: Michael Gleicher: Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
CS 376 Introduction to Computer Graphics 04 / 25 / 2007 Instructor: Michael Eckmann.
Representation of Curves & Surfaces Prof. Lizhuang Ma Shanghai Jiao Tong University.
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Parametric Curves & Surfaces Greg Humphreys University of Virginia CS 445, Spring.
CSCE 441: Keyframe Animation/Smooth Curves (Cont.) Jinxiang Chai.
Slide 129 October 1999CS Computer Graphics (Top Changwatchai) Bézier Curves - Results of Derivation Tangents at endpoints are equal to endpoint slopes.
1 Graphics CSCI 343, Fall 2015 Lecture 34 Curves and Surfaces III.
CS 325 Computer Graphics 04 / 30 / 2010 Instructor: Michael Eckmann.
Curves University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013 Tamara Munzner.
CS552: Computer Graphics Lecture 19: Bezier Curves.
Object Modeling: Curves and Surfaces CEng 477 Introduction to Computer Graphics.
Introduction to Parametric Curve and Surface Modeling.
CSCI480/582 Lecture 9 Chap.2.2 Cubic Splines – Hermit and Bezier Feb, 11, 2009.
Surfaces and Curves.
CS5500 Computer Graphics May 11, 2006
Representation of Curves & Surfaces
(Spline, Bezier, B-Spline)
Computer Graphics Lecture 37
Parametric Curves.
CURVES CAD/CAM/CAE.
© University of Wisconsin, CS559 Spring 2004
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.
Curve design 455.
Parametric Line equations
UNIT-5 Curves and Surfaces.
CSCE 441: Keyframe Animation/Smooth Curves (Cont.)
Three-Dimensional Object Representation
Introduction to Parametric Curve and Surface Modeling
Type to enter a caption. Computer Graphics Week 10 Lecture 1.
Spline representation. ❖ A spline is a flexible strip used to produce a smooth curve through a designated set of points. ❖ Mathematically describe such.
Overview June 9- B-Spline Curves June 16- NURBS Curves
Presentation transcript:

Type to enter a caption. Computer Graphics Week 10 Lecture 2

Approximation Splines

Interpolation and Approximation When polynomial sections are fitted such that all control points are connected When a polynomial curve is fitted such that some or all the control points are not on the generated curve The control points specify the general path of the curve

Example

Some approximation Methods Bezier curves B-Splines Beta-Splines

Developed by French Automobile Engineer , Pierre Bezier ,Who worked for Renault Used widely Very Conveniant to Calculate and use Bezier Curve

Bezier Curve Most conveniently specified by blending functions For n+1 control points, the Bezier curve technique produces a polynomial of order n Let pk represent control points & P(u) be the equation of desired Bezier curve, then where, BEZ are the blending functions

BEZ BEZ are called Bernstein Polynomials

Examples

Some terminologies Convex Hull : Boundary of space formed by a set of control points Bounded space should be a convex polygon Imagine a rubber band being strecthed out on control points. Some control points will lie on boundary and some inside .

Contd... Control graph: A polyline connecting the control points in sequence . It tell’s us the approximate shape of the curve.

Properties of Bezier Curve The starting and the ending point of Bezier curve is same as the first and the last control point respectively. i.e. P(0)=p0 and P(1)=pn The Parametric derivatives at the endpoints of curve are From above we can see that the gradient of the curve at the beginning is along the line joining the first and second control point and the gradient of the curve at the end is along the line joining the last two control points The Bezier Curve always lie within its convex hull. This is because curve is a weighted sum of control points. And sum of weights =1 (weights are all +ve)

Properties of Bezier Curve The second parametric derivative of curve at control points is: Does not allow for local control (more on this on Cubic Bezier curves)

Design Techniques for Bezier Curve If first and last control points are same then curve forms a close loop Since the Bezier curve is a weighted sum of control points so specifying 2 control points at the same position will give that point more weight (importance). Curve will bend towards it For making complicated curves , instead of making one large Bezier curve we piece together several smaller curves (How to do this → on board) We mostly piece together cubic Bezier Curves

Cubic Bezier Curves The blending functions for the cubic Bezier Curves comes out to be : The blending functions are weights of control points

Contd....

Example For a Bezier Curve with control points p0(1,1), p1(2,3) , p2(3,1) , p3(4,3) Find parametric equation of the curve. Find values at u = 0.15 and and 0.35

Ans x(u) = (1-u)3 + 6u * (1-u)2 + 9u2 * (1-u) + 4*u3 y(u) = (1-u)3 + 9u * (1-u)2 + 3u2 * (1-u) + 3*u3 x(0.15) = 1.45 ,y(0.15) =1.657 x(0.35) = 2.05 ,y(0.35) =1.973

Pseudo code

The End

Text

Text

Text –Johnny Appleseed