Object Modeling: Curves and Surfaces CEng 477 Introduction to Computer Graphics.

Slides:



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

2002 by Jim X. Chen: Bezier Curve Bezier Curve.
COMPUTER GRAPHICS CS 482 – FALL 2014 OCTOBER 8, 2014 SPLINES CUBIC CURVES HERMITE CURVES BÉZIER CURVES B-SPLINES BICUBIC SURFACES SUBDIVISION SURFACES.
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.
CS 445 / 645 Introduction to Computer Graphics Lecture 22 Hermite Splines Lecture 22 Hermite Splines.
1 Introduction Curve Modelling Jack van Wijk TU Eindhoven.
Dr. S.M. Malaek Assistant: M. Younesi
08/30/00 Dinesh Manocha, COMP258 Hermite Curves A mathematical representation as a link between the algebraic & geometric form Defined by specifying the.
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.
09/04/02 Dinesh Manocha, COMP258 Bezier Curves Interpolating curve Polynomial or rational parametrization using Bernstein basis functions Use of control.
Designing Parametric Cubic Curves Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
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.
Designing Parametric Cubic Curves
Curve Surfaces June 4, Examples of Curve Surfaces Spheres The body of a car Almost everything in nature.
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.
A D V A N C E D C O M P U T E R G R A P H I C S CMSC 635 January 15, 2013 Spline curves 1/23 Curves and Surfaces.
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.
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.
Chapter 4 Representations of Curves and Surfaces.
Chapter VI Parametric Curves and Surfaces
June D Object Representation Shmuel Wimer Bar Ilan Univ., School of Engineering.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS Representation of Curves and Surfaces Graphics.
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.
Slide 129 October 1999CS Computer Graphics (Top Changwatchai) Bézier Curves - Results of Derivation Tangents at endpoints are equal to endpoint slopes.
Designing Parametric Cubic Curves 1. 2 Objectives Introduce types of curves ­Interpolating ­Hermite ­Bezier ­B-spline Analyze their performance.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Graphics CSCI 343, Fall 2015 Lecture 34 Curves and Surfaces III.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
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.
Introduction to Parametric Curve and Surface Modeling.
COMPUTER GRAPHICS CHAPTERS CS 482 – Fall 2017 SPLINES
Surfaces and Curves.
CS5500 Computer Graphics May 11, 2006
Curve & Surface.
Representation of Curves & Surfaces
Chapter 10-2: Curves.
© University of Wisconsin, CS559 Fall 2004
Designing Parametric Cubic 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.
Three-Dimensional Object Representation
Introduction to Parametric Curve and Surface Modeling
Designing Parametric Cubic Curves
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.
Type to enter a caption. Computer Graphics Week 10 Lecture 2.
Presentation transcript:

Object Modeling: Curves and Surfaces CEng 477 Introduction to Computer Graphics

Object Representations ● Types of objects: geometrical shapes, trees, terrains, clouds, rocks, glass, hair, furniture, human body, etc. ● Not possible to have a single representation for all – Polygon surfaces – Spline surfaces – Procedural methods – Physical models – Solid object models – Fractals – ……

Spline Representations ● Spline curve: Curve consisting of continous curve segments approximated or interpolated on polygon control points. ● Spline surface: a set of two spline curves matched on a smooth surface. ● Interpolated: curve passes through control points ● Approximated: guided by control points but not necessarily passes through them. Interpolated Approximated

● Convex hull of a spline curve: smallest polygon including all control points. ● Characteristic polygon, control path: vertices along the control points in the same order.

● Parametric equations: ● Parametric continuity: Continuity properties of curve segments. – Zero order: Curves intersects at one end-point: C 0 – First order: C 0 and curves has same tangent at intersection: C 1 – Second order: C 0, C 1 and curves has same second order derivative: C 2

● Geometric continuity: Similar to parametric continuity but only the direction of derivatives are significant. For example derivative (1,2) and (3,6) are considered equal. ● G 0, G 1, G 2 : zero order, first order, and second order geometric continuity.

Spline Equations ● Cubic curve equations: ● General form: ● M s : spline transformation (blending functions) M g : geometric constraints (control points)

Natural Cubic Splines ● Interpolation of n+1 control points. n curve segments. 4n coefficients to determine ● Second order continuity. 4 equation for each of n-1 common points: 4n equations required, 4n-4 so far. ● Starting point condition, end point condition. ● Assume second derivative 0 at end-points or add phantom control points p -1, p n+1.

● Write 4n equations for 4n unknown coefficients and solve. ● Changes are not local. A control point effects all equations. ● Expensive. Solve 4n system of equations for changes.

Hermite Interpolation ● End point constraints for each segment is given as: ● Control point positions and first derivatives are given as constraints for each end-point.

Hermite curves These polynomials are called Hermite blending functions, and tells us how to blend boundary conditions to generate the position of a point P(u) on the curve

Hermite blending functions

Hermite curves ● Segments are local. First order continuity ● Slopes at control points are required. ● Cardinal splines and Kochanek-Bartel splines approximate slopes from neighbor control points.

Bézier Curves ● A Bézier curve approximates any number of control points for a curve section (degree of the Bézier curve depends on the number of control points and their relative positions)

● The coordinates of the control points are blended using Bézier blending functions BEZ k,n (u) ● Polynomial degree of a Bézier curve is one less than the number of control points. 3 points : parabola 4 points : cubic curve 5 points : fourth order curve

Cubic Bézier Curves ● Most graphics packages provide Cubic Béziers.

Cubic Bézier blending functions The four Bézier blending functions for cubic curves (n=3, i.e. 4 control pts.) p0p0 p1p1 multiplied with p2p2 p3p3

Properties of Bézier curves ● Passes through start and end points ● First derivates at start and end are: ● Lies in the convex hull

Joining Bézier curves ● Start and end points are same (C 0 ) ● Choose adjacent points to start and end in the same line (C 1 ) ● C 2 continuity is not generally used in cubic Bézier curves. Because the information of the current segment will fix the first three points of the next curve segment n and n ’ are the number of control points in the first and in the second curve segment respectively

Bézier Surfaces ● Two sets of orthogonal Bézier curves are used. ● Cartesian product of Bézier blending functions:

Bézier Patches ● A common form of approximating larger surfaces by tiling with cubic Bézier patches. m=n=3 ● 4 by 4 = 16 control points.

Cubic Bézier Surfaces ● Matrix form ● Joining patches: similar to curves. C 0, C 1 can be established by choosing control points accordingly.