Representation of Curves & Surfaces Prof. Lizhuang Ma Shanghai Jiao Tong University.

Slides:



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

2002 by Jim X. Chen: Bezier Curve Bezier Curve.
Lecture 10 Curves and Surfaces I
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.
MIT EECS 6.837, Durand and Cutler Curves & Surfaces.
Informationsteknologi Monday, December 10, 2007Computer Graphics - Class 161 Today’s class Curve fitting Evaluators Surfaces.
Rational Bezier Curves
Modelling. Outline  Modelling methods  Editing models – adding detail  Polygonal models  Representing curves  Patched surfaces.
Modeling of curves Needs a ways of representing curves: Reproducible - the representation should give the same curve every time; Computationally Quick;
1 Lecture 13 Modeling Curved Lines and Surfaces. 2 Types of Surfaces Ruled Surfaces B-Splines and Bezier Curves Surfaces of Revolution.
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
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
1 Representing Curves and Surfaces. 2 Introduction We need smooth curves and surfaces in many applications: –model real world objects –computer-aided.
Curve Surfaces June 4, Examples of Curve Surfaces Spheres The body of a car Almost everything in nature.
Computer Graphics Lecture 13 Curves and Surfaces I.
Curve Modeling Bézier Curves
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.
19/13/ :20 UML Graphics II Parametric Curves and Surfaces Session 3.
CS 376 Introduction to Computer Graphics 04 / 23 / 2007 Instructor: Michael Eckmann.
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.
Introduction to Computer Graphics with WebGL
CS 445 / 645 Introduction to Computer Graphics Lecture 23 Bézier Curves Lecture 23 Bézier Curves.
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.
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.
Geometric Modelling 2 INFO410 & INFO350 S Jack Pinches
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.
04/18/02(c) 2002 University of Wisconsin Last Time Hermite Curves Bezier Curves.
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.
Computing & Information Sciences Kansas State University Lecture 31 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 32 of 42 Wednesday, 11.
11/26/02(C) University of Wisconsin Last Time BSplines.
(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.
Representation of Curves and Surfaces Chapter 9. Chapter 9 -- Representation of Curves and Surfaces2 u The classic teapot shown here is perhaps one of.
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:
1 대상물체의 형상화를 위해 사용되는 기술  인공물체 : 기하학적 Primitive ( 선, 면, 구, 육면체 ) 등을 이 용하여 형상화. 입력물 : 형상화 물체의 3 차원 좌표값 출력물 : 선구조형상 (Wire framed objects) Technique:Geometric.
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.
© University of Wisconsin, CS559 Spring 2004
CS5500 Computer Graphics May 11, 2006
Curve & Surface.
Representation of Curves & Surfaces
CS 445 / 645 Introduction to Computer Graphics
Chapter 10-2: Curves.
CS 430/536 Computer Graphics I Intro to Curves Week 4, Lecture 7
© 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.
Three-Dimensional Object Representation
Introduction to Parametric Curve and Surface Modeling
Presentation transcript:

Representation of Curves & Surfaces Prof. Lizhuang Ma Shanghai Jiao Tong University

Contents Specialized Modeling Techniques Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized Modeling Techniques

The Teapot

Representing Polygon Meshes Explicit representation By a list of vertex coordinates Pointers to a vertex list Pointers to an edge list

Pointers to A Vertex List

Pointers to An Edge List

Parametric Cubic Curves The cubic polynomials that define a curve segment are of the form:

Parametric Cubic Curves The curve segment can be rewrite as Where

Parametric Cubic Curves

Tangent Vector

Continuity Between Curve Segments G 0 geometric continuity –Two curve segments join together G 1 geometric continuity –The directions (but not necessarily the magnitudes) of the two segments’ tangent vectors are equal at a join point

Continuity Between Curve Segments C 1 continuous –The tangent vectors of the two cubic curve segments are equal (both directions and magnitudes) at the segments’ joint point C n continuous –The direction and magnitude of through the nth derivative are equal at the joint point

Continuity Between Curve Segments

Three Types of Parametric Cubic Curves Hermite Curves –Defined by two endpoints and two endpoint tangent vectors Bézier Curves –Defined by two endpoints and two control points which control the endpoint’ tangent vectors Splines –Defined by four control points

Parametric Cubic Curves Representation: Rewrite the coefficient matrix as –where M is a 4x4 basis matrix, G is called the geometry matrix –So 4 endpoints or tangent vectors

Parametric Cubic Curves –Where is called the blending functions

Hermite Curves Given the endpoints P 1 and P 4 and tangent vectors at them R 1 and R 4 What is –Hermite basis matrix M H –Hermite geometry vector G H –Hermite blending functions B H By definition G H =[P 1 P 4 R 1 R 4 ]

Hermite Curves Since

Hermite Curves So And

Given the endpoints P 1 and P 4 and two control points P 2 and P 3 which determine the endpoints’ tangent vectors, such that What is –Bézier basis matrix M B –Bézier geometry vector G B –Bézier blending functions B B Bézier Curves

By definition Then So

Bézier Curves And (Bernstein polynomials)

Convex Hull

The polynomial coefficients for natural cubic splines are dependent on all n control points –Has one more degree of continuity than is inherent in the Hermite and Bézier forms –Moving any one control point affects the entire curve –The computation time needed to invert the matrix can interfere with rapid interactive reshaping of a curve Spline

B-Spline

Cubic B-Spline Has m+1 control points Has m-2 cubic polynomial curve segments Uniform –The knots are spaced at equal intervals of the parameter t Non-rational –Not rational cubic polynomial curves Uniform NonRational B-Splines

Curve segment Qi is defined by points B-Spline geometry matrix If Then Uniform NonRational B-Splines

So B-Spline basis matrix B-Spline blending functions Uniform NonRational B-Splines

The knot-value sequence is a nondecreasing sequence Allow multiple knot and the number of identical parameter is the multiplicity –Ex. (0,0,0,0,1,1,2,3,4,4,5,5,5,5) So Uniform NonRational B-Splines

Where is j th-order blending function for weighting control point P i

Knot Multiplicity & Continuity Since is within the convex hull of and If is within the convex hull of, and and the convex hull of and,so it will lie on If will lie on If will lie on both and, and the curve becomes broken

Multiplicity 1 : C 2 continuity Multiplicity 2 : C 1 continuity Multiplicity 3 : C 0 continuity Multiplicity 4 : no continuity Knot Multiplicity & Continuity

NURBS: NonUniform Rational B-Splines Rational and are defined as the ratio of two cubic polynomials Rational cubic polynomial curve segments are ratios of polynomials Can be Bézier, Hermite, or B-Splines

Parametric Bi-Cubic Surfaces Parametric cubic curves are So, parametric bi-cubic surfaces are If we allow the points in G to vary in 3D along some path, then Since are cubics:, where

Parametric Bi-Cubic Surfaces So

Hermite Surfaces

Bézier Surfaces

Normals to Surfaces normal vector

Quadric Surfaces Implicit surface equation An alternative representation with

Advantages: –Computing the surface normal –Testing whether a point is on the surface –Computing z given x and y –Calculating intersections of one surface with another Quadric Surfaces

Fractal Models

Grammar-Based Models L-grammars –A -> AA –B -> A[B]AA[B]