Curves and Surfaces (I)

Slides:



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

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.
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;
Designing Parametric Cubic Curves Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Geometric Modeling Surfaces Mortenson Chapter 6 and Angel Chapter 9.
Curves Mortenson Chapter 2-5 and Angel Chapter 9
Drawing Parametric Curves Jean-Paul Mueller. Curves - The parametric form of a curve expresses the value of each spatial variable for points on the curve.
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
RASTER CONVERSION ALGORITHMS FOR CURVES: 2D SPLINES 2D Splines - Bézier curves - Spline curves.
Curves and Surfaces CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
Bezier and Spline Curves and Surfaces CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
COEN Computer Graphics I
Chapter 10: Curves and Surfaces Part 1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley Mohan Sridharan Based on Slides.
Designing Parametric Cubic Curves
1 Representing Curves and Surfaces. 2 Introduction We need smooth curves and surfaces in many applications: –model real world objects –computer-aided.
09/16/02 Dinesh Manocha, COMP258 Surfaces Locally a 2D manifold: i.e. approximating a plane in the ngbd. of each point. A 2-parameter family of points.
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
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.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
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
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 surfaces.
Curves and Surfaces Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico 1 Angel: Interactive.
Curves and Surfaces Chapter 10. CS 480/680 2Chapter 9 -- Hierarchical Models Introduction: Introduction: Until now we have worked with flat entities such.
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.
Representation of Curves & Surfaces Prof. Lizhuang Ma Shanghai Jiao Tong University.
11/6/ :55 Graphics II Introduction to Parametric Curves and Surfaces Session 2.
Splines I – Curves and Properties based on: Michael Gleicher Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
Computing & Information Sciences Kansas State University Lecture 31 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 32 of 42 Wednesday, 11.
CAP 4703 Computer Graphic Methods Prof. Roy Levow Chapter 10.
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.
Curves University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013 Tamara Munzner.
Introduction to Parametric Curve and Surface Modeling.
CS5500 Computer Graphics May 11, 2006
Representation of Curves & Surfaces
CS 445 / 645 Introduction to Computer Graphics
(Spline, Bezier, B-Spline)
Chapter 10-2: Curves.
University of New Mexico
University of New Mexico
Parametric Curves.
© University of Wisconsin, CS559 Fall 2004
Designing Parametric Cubic Curves
CURVES CAD/CAM/CAE.
© University of Wisconsin, CS559 Spring 2004
Curves and Surfaces Ed Angel
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.
UNIT-5 Curves and Surfaces.
Introduction to Computer Graphics with WebGL
Three-Dimensional Object Representation
Geometric Objects and Transformations (I)
Introduction to Parametric Curve and Surface Modeling
Designing Parametric Cubic Curves
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:

Curves and Surfaces (I) 姜明 北京大学数学科学学院 Based on [EA], Chapter 11. 更新时间2019年4月29日星期一10时22分10秒

Introduction In computer graphics, flat objects are popular in this virtual world Graphic systems can render them at high rates. We need methods to model curved objects.

Outline Representation of Curves and Surfaces Design Criteria Parametric Cubic Polynomial Curves Cubic Interpolating Polynomial

Representation of Curves and Surfaces Three major ways of object representation Explicit Representation Implicit Representations Parametric Form Polynomial Representations Parametric Polynomial Curves Parametric Polynomial Surfaces

Explicit Representation No guarantee that this representation exists for a given curve/surface z=f(x,y) cannot represent a (full) sphere. Some curves and surfaces may not have an explicit representation. Coordinate-system-dependent effect. Easy to obtain points on them.

Implicit Representations f(x,y,z) = 0 in 3D or f(x,y) = 0 in 2D. Less coordinate-system-dependent: it does represent all lines/circles. Allow to determine whether points lie on the curve/surface. Difficult to find points on the curve/surface. Curves in 3D are not easily represented in implicit form because it takes two equations to represent a curve in 3D f(x,y,z) = 0 and g (x,y,z) = 0 “In general, most of the curves and surfaces that arise in real applications have implicit representations. Their use is limited by the difficult in obtaining points on them.” [EA, p. 600] Algebraic surfaces: f(x,y,z) is a polynomial. Of particular importance are the quadric surfaces.

Parametric Form Same form in 2D and 3D. Most flexible and robust for computer graphics than the others. Still coordinate-system-dependent. Coordinate-system-independent representations are possible Using Frenet frame for curves. Difficult to determine if a point is on the curve/surface.

Parametric Polynomial Curves/Surfaces Parametric representations are not unique. Parametric polynomial forms are of most use in computer graphics. Curve Segment Surface Patch

Design Criteria Local control of shape: A single global description is generally out of the question and too complex. We would like/have to work interactively with the shape, carefully molding it meet specifications Smoothness and continuity at joint points A curve with discontinuity is of little interest to us. Not only will each segment have to be smooth, but also we want a degree of smoothness where the segments meet at joint point. Smoothness is measured with derivatives along the curves/surfaces. Ability to evaluate derivatives is needed to evaluate smoothness and normals. Stability It is necessary to bend curves/surfaces to the desired shape through local control points. When we make a change, this change will only affect the shape in only the area where we are working. Small changes in the values of input parameters should cause only small changes in output variables We are usually satisfied if the curve/surface passes close to the control points. Ease of Rendering Good math representations may be of limited value if they cannot be efficiently rendered.

Splines Splines are types of curves, originally developed for ship-building in the days before computer modeling. Naval architects needed a way to draw a smooth curve through a set of points. The solution was to place metal weights (called knots) at the control points, and bend a thin metal or wooden beam (called a spline) through the weights. The physics of the bending spline meant that the influence of each weight was greatest at the point of contact, and decreased smoothly further along the spline. To get more control over a certain region of the spline, the draftsman simply added more weights. This scheme had obvious problems with data exchange! People needed a mathematical way to describe the shape of the curve. Cubic Polynomials Splines are the mathematical equivalent of the draftsman's wooden beam. Polynomials were extended to B-splines (for Basis splines), which are sums of lower-level polynomial splines. Then B-splines were extended to create a mathematical representation called NURBS. Read History of Splines Edited from http://www.alias.com/eng/support/studiotools/documentation/Using/About4.html

Parametric Cubic Polynomial Curves We must choose the degree of polynomials. If we choose higher degree We will have more parameters that we can set to form the desired shape. The evaluation of points will be costly. There is more danger that the curve will become rougher at some points. If we pick too low a degree, we may not have enough parameters to work and to make them to join smoothly. If we design each curve segment over a short interval, we can achieve many of our purposes with low-degree curves. Cubic polynomials are chosen, at least initially. c is to be determined from the control-point data. Types of cubic curves differ in how they use the control-point data. The data may be Interpolating: the polynomial must pass some points. Higher order interpolating at certain parameter values. Smoothness conditions at join points. Approximative: the curve pass close to some data points.

Cubic Interpolating Polynomial Suppose that we have four control points in 3D. We seek the coefficients c such that the polynomial p(u) = uTc passes through the four points. We assume the interval is [0, 1], the curve passes four points at u = 0, 1/3, 2/3, and 1.

Joining of interpolating segments. Because of the lack of derivative continuity at joint points, the interpolating polynomial is of limited use in computer graphics. Joining of interpolating segments.

Blending Functions

Cubic Interpolating Patch A bicubic surface patch can be written in the form Suppose that we have 16 3D control points pij. We can use those points to define an interpolating bicubic surface patch at interpolating points 0, 1/3, 2/3, 1. It is easy to find the interpolating polynomial by tensor product.