Curves and Surfaces 1

Similar documents
The Free-form Surface Modelling System

Curves and Surfaces Computer Graphics I Lecture 9

Bezier Curves, B-Splines, NURBS

Curves and Surfaces Computer Graphics I Lecture 10

Intro to Curves Week 4, Lecture 7

Representing Curves Part II. Foley & Van Dam, Chapter 11

Know it. Control points. B Spline surfaces. Implicit surfaces

Until now we have worked with flat entities such as lines and flat polygons. Fit well with graphics hardware Mathematically simple

Shape Representation Basic problem We make pictures of things How do we describe those things? Many of those things are shapes Other things include

3D Modeling Parametric Curves & Surfaces

Fall CSCI 420: Computer Graphics. 4.2 Splines. Hao Li.

An introduction to interpolation and splines

Intro to Curves Week 1, Lecture 2

3D Modeling Parametric Curves & Surfaces. Shandong University Spring 2013

B-spline Curves. Smoother than other curve forms

Parametric Curves. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

CS 536 Computer Graphics Intro to Curves Week 1, Lecture 2

Curves D.A. Forsyth, with slides from John Hart

Splines. Parameterization of a Curve. Curve Representations. Roller coaster. What Do We Need From Curves in Computer Graphics? Modeling Complex Shapes

Introduction to Computer Graphics

Parametric Curves. University of Texas at Austin CS384G - Computer Graphics

Computer Graphics. Curves and Surfaces. Hermite/Bezier Curves, (B-)Splines, and NURBS. By Ulf Assarsson

Curve and Surface Basics

CS130 : Computer Graphics Curves (cont.) Tamar Shinar Computer Science & Engineering UC Riverside

OUTLINE. Quadratic Bezier Curves Cubic Bezier Curves

Need for Parametric Equations

Computer Graphics Curves and Surfaces. Matthias Teschner

2D Spline Curves. CS 4620 Lecture 13

Sung-Eui Yoon ( 윤성의 )

Intro to Modeling Modeling in 3D

Curves and Surface I. Angel Ch.10

Information Coding / Computer Graphics, ISY, LiTH. Splines

Curves. Computer Graphics CSE 167 Lecture 11

COMPUTER AIDED ENGINEERING DESIGN (BFF2612)

Central issues in modelling

Computergrafik. Matthias Zwicker Universität Bern Herbst 2016

2D Spline Curves. CS 4620 Lecture 18

CS770/870 Spring 2017 Curve Generation

Rational Bezier Curves

Computergrafik. Matthias Zwicker. Herbst 2010

Design considerations

CSE 167: Introduction to Computer Graphics Lecture 12: Bézier Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013

COMPUTER AIDED GEOMETRIC DESIGN. Thomas W. Sederberg

Geometric Modeling of Curves

CSE 167: Introduction to Computer Graphics Lecture #11: Bezier Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016

GL9: Engineering Communications. GL9: CAD techniques. Curves Surfaces Solids Techniques

Curve Representation ME761A Instructor in Charge Prof. J. Ramkumar Department of Mechanical Engineering, IIT Kanpur

CS-184: Computer Graphics

CS-184: Computer Graphics. Today

Rendering Curves and Surfaces. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

08 - Designing Approximating Curves

CSE 167: Introduction to Computer Graphics Lecture #13: Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2017

(Spline, Bezier, B-Spline)

Introduction p. 1 What Is Geometric Modeling? p. 1 Computer-aided geometric design Solid modeling Algebraic geometry Computational geometry

Curves & Surfaces. Last Time? Progressive Meshes. Selective Refinement. Adjacency Data Structures. Mesh Simplification. Mesh Simplification

LECTURE #6. Geometric Modelling for Engineering Applications. Geometric modeling for engineering applications

CHAPTER 1 Graphics Systems and Models 3

Curves and Curved Surfaces. Adapted by FFL from CSE167: Computer Graphics Instructor: Ronen Barzel UCSD, Winter 2006

Curve Construction via Local Fitting

Computer Graphics CS 543 Lecture 13a Curves, Tesselation/Geometry Shaders & Level of Detail

TO DUY ANH SHIP CALCULATION

Bézier Splines. B-Splines. B-Splines. CS 475 / CS 675 Computer Graphics. Lecture 14 : Modelling Curves 3 B-Splines. n i t i 1 t n i. J n,i.

Parametric curves. Brian Curless CSE 457 Spring 2016

CS3621 Midterm Solution (Fall 2005) 150 points

Shape modeling Modeling technique Shape representation! 3D Graphics Modeling Techniques

Further Graphics. Bezier Curves and Surfaces. Alex Benton, University of Cambridge Supported in part by Google UK, Ltd

For each question, indicate whether the statement is true or false by circling T or F, respectively.

CS 475 / CS Computer Graphics. Modelling Curves 3 - B-Splines

Curves and Surfaces. Computer Graphics COMP 770 (236) Spring Instructor: Brandon Lloyd

A MATRIX FORMULATION OF THE CUBIC BÉZIER CURVE

Dgp _ lecture 2. Curves

Splines Computer Graphics I Lecture 10

Remark. Jacobs University Visualization and Computer Graphics Lab : ESM4A - Numerical Methods 331

Lecture IV Bézier Curves

Approximation of 3D-Parametric Functions by Bicubic B-spline Functions

An introduction to NURBS

Interactive Graphics. Lecture 9: Introduction to Spline Curves. Interactive Graphics Lecture 9: Slide 1

COMP3421. Global Lighting Part 2: Radiosity

Curves & Surfaces. MIT EECS 6.837, Durand and Cutler

Parameterization. Michael S. Floater. November 10, 2011

Advanced Graphics. Beziers, B-splines, and NURBS. Alex Benton, University of Cambridge Supported in part by Google UK, Ltd

Splines. Connecting the Dots

Final Exam CS 184: Foundations of Computer Graphics! page 1 of 12!

A story about Non Uniform Rational B-Splines. E. Shcherbakov

GEOMETRIC TOOLS FOR COMPUTER GRAPHICS

Curves and Surfaces. Chapter 7. Curves. ACIS supports these general types of curves:

Curves, Surfaces and Recursive Subdivision

Computer Graphics I Lecture 11

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Describing Shapes. Constructing Objects in Computer Graphics 1/15

Review of Tuesday. ECS 175 Chapter 3: Object Representation

Spline Notes. Marc Olano University of Maryland, Baltimore County. February 20, 2004

Computer Aided Geometric Design

Advanced Modeling 2. Katja Bühler, Andrej Varchola, Eduard Gröller. March 24, x(t) z(t)

Surface Modeling. Polygon Tables. Types: Generating models: Polygon Surfaces. Polygon surfaces Curved surfaces Volumes. Interactive Procedural

15.10 Curve Interpolation using Uniform Cubic B-Spline Curves. CS Dept, UK

Lecture 2.2 Cubic Splines

CS337 INTRODUCTION TO COMPUTER GRAPHICS. Describing Shapes. Constructing Objects in Computer Graphics. Bin Sheng Representing Shape 9/20/16 1/15

Shape Control of Cubic H-Bézier Curve by Moving Control Point

Les Piegl Wayne Tiller. The NURBS Book. Second Edition with 334 Figures in 578 Parts. A) Springer

Interactive Computer Graphics A TOP-DOWN APPROACH WITH SHADER-BASED OPENGL

Transcription:

Curves and Surfaces 1

Representation of Curves & Surfaces Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized Modeling Techniques 2

The Teapot 3

Representing Polygon Meshes explicit representation by a list of vertex coordinates pointers to a vertex list pointers to an edge list 4

Pointers to a Vertex List 5

Pointers to an Edge List 6

Ax+By+Cz+D=0 Plane Equation And (A, B, C) means the normal vector so, given points P 1, P 2, and P 3 on the plane (A, B, C) =P 1 P 2 P 1 P 3 What happened if (A, B, C) =(0, 0, 0)? The distance from a vertex (x, y, z) to the plane is 7

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

9 Parametric Cubic Curves The curve segment can be rewrite as where

10 Continuity between curve segments

Tangent Vector 11

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 12

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 join point C n continuous the direction and magnitude of through the nth derivative are equal at the join point 13

14 Continuity between curve segments

15 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 16

Parametric Cubic Curves Rewrite the coefficient matrix as where M is a 4 4 basis matrix, G is called the geometry matrix so 17

18 Parametric Cubic Curves where function is called the blending

19 Hermite Curves Given the endpoints P 1 and P 4 and tangent vectors at R 1 and R 4 What are Hermite basis matrix M H Hermite geometry vector G H Hermite blending functions B H By definition

20 Hermite Curves Since

21 Hermite Curves so and

Four control points Bezier Curves Two endpoints, two direction points Length of lines from each endpoint to its direction point representing the speed with which the curve sets off towards the direction point Fig. 4.8, 4.9 22

Bézier Curves Given the endpoints and and two control points and 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 23

by definition then Bézier Curves so 24

25 Bézier Curves and

Subdividing Bézier Curves How to draw the curve? How to convert it to be linesegments? 26

Bezier Curves Constructing a Bezier curve Fig. 4.10-13 Finding mid-points of lines 27

Bezier Curves 28

Convex Hull 29

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 30

B-Spline 31

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 32

Uniform NonRational B-Splines Curve segment Q i is defined by points thus B-Spline geometry matrix if then 33

34 Uniform NonRational B-Splines so B-Spline basis matrix B-Spline blending functions

NonUniform NonRational B-Splines the knot-value sequence is a nondecreasing sequence allow multiple knot and the number of identical parameter is the multiplicity so Ex. (0,0,0,0,1,1,2,3,4,4,5,5,5,5) 35

NonUniform NonRational B-Splines Where is the jth-order blending function for weighting control point p i 36

Knot Multiplicity & Continuity Since Q(t i ) is within the convex hull of P i-3, P i-2, and P i-1 If t i =t i+1, Q(t i ) is within the convex hull of P i-3, P i-2, and P i-1 and the convex hull of P i-2, P i-1, and P i, so it will lie on P i-2 P i-1 If t i =t i+1 =t i+2, Q(t i ) will lie on p i-1 If t i =t i+1 =t i+2 =t i+3, Q(t i ) will lie on both P i-1 and P i, and the curve becomes broken 37

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

NURBS: NonUniform Rational B-Splines rational x(t), y(t) and z(t) 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 39

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 G i (t) are cubics 40

41 Parametric Bi-Cubic Surfaces so

Hermite Surfaces 42

Bézier Surfaces 43

B-Spline Surfaces 44

Normals to Surfaces 45

46 Quadric Surfaces implicit surface equation an alternative representation

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