Representation of Curves & Surfaces

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
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.
© University of Wisconsin, CS559 Spring 2004
B-Spline Blending Functions
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.
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.
Rational Bezier Curves
Modeling of curves Needs a ways of representing curves: Reproducible - the representation should give the same curve every time; Computationally Quick;
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
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 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.
Representation of Curves & Surfaces Prof. Lizhuang Ma Shanghai Jiao Tong University.
04/18/02(c) 2002 University of Wisconsin Last Time Hermite Curves Bezier Curves.
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.
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.
CS G140 Graduate Computer Graphics
© University of Wisconsin, CS559 Spring 2004
Introduction to Parametric Curve and Surface Modeling
Surfaces and Curves.
CS5500 Computer Graphics May 11, 2006
Curve & Surface.
CS 445 / 645 Introduction to Computer Graphics
(Spline, Bezier, B-Spline)
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 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

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 rewritten as Where

Parametric Cubic Curves

Tangent Vector

Continuity Between Curve Segments G0 geometric continuity Two curve segments join together G1 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 C1 continuous The tangent vectors of the two cubic curve segments are equal (both directions and magnitudes) at the segments’ joint point􀂆 Cn continuous The direction and magnitude of through the nth derivative are equal at the joint point

Continuity Between Curve Segments

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 P1 and P4 and tangent vectors at them R1 and R4 What is Hermite basis matrix MH Hermite geometry vector GH Hermite blending functions BH By definition GH=[P1 P4 R1 R4]

Hermite Curves Since

Hermite Curves So And

Bézier Curves Given the endpoints P1 and P4 and two control points P2 and P3 which determine the endpoints’ tangent vectors, such that What is􀂄 Bézier basis matrix MB Bézier geometry vector GB Bézier blending functions BB

Bézier Curves By definition Then So

Bézier Curves And (Bernstein polynomials)

Convex Hull

Spline 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

B-Spline

Uniform NonRational B-Splines 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 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

NON-Uniform NonRational B-Splines Where is j th-order blending function for weighting control point Pi

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

Knot Multiplicity & Continuity Multiplicity 1 : C2 continuity Multiplicity 2 : C1 continuity Multiplicity 3 : C0 continuity Multiplicity 4 : no continuity

NURBS: NonUniform Rational B-Splines 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

Quadric Surfaces 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

Fractal Models

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