Computer Graphics. Unit VI: Curves And Fractals. By Vaishali Kolhe

Similar documents
Information Coding / Computer Graphics, ISY, LiTH. Splines

Design considerations

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

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

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

Curves and Surfaces 1

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

Curves and Surfaces Computer Graphics I Lecture 9

An introduction to interpolation and splines

Need for Parametric Equations

(Spline, Bezier, B-Spline)

08 - Designing Approximating Curves

Parametric curves. Brian Curless CSE 457 Spring 2016

Introduction to Computer Graphics

In this course we will need a set of techniques to represent curves and surfaces in 2-d and 3-d. Some reasons for this include

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

Central issues in modelling

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

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

Lecture IV Bézier Curves

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

Parametric curves. Reading. Curves before computers. Mathematical curve representation. CSE 457 Winter Required:

Lecture 25: Bezier Subdivision. And he took unto him all these, and divided them in the midst, and laid each piece one against another: Genesis 15:10

Splines. Connecting the Dots

Dgp _ lecture 2. 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

Properties of Blending Functions

Intro to Modeling Modeling in 3D

Line Drawing. Introduction to Computer Graphics Torsten Möller / Mike Phillips. Machiraju/Zhang/Möller

Computergrafik. Matthias Zwicker Universität Bern Herbst 2016

OUTLINE. Quadratic Bezier Curves Cubic Bezier Curves

A Curve Tutorial for Introductory Computer Graphics

Rational Bezier Curves

Curves and Surfaces Computer Graphics I Lecture 10

Computer Graphics Curves and Surfaces. Matthias Teschner

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

Curve and Surface Basics

A MATRIX FORMULATION OF THE CUBIC BÉZIER CURVE

The goal is the definition of points with numbers and primitives with equations or functions. The definition of points with numbers requires a

Computergrafik. Matthias Zwicker. Herbst 2010

Lecture 9: Introduction to Spline Curves

Line Drawing. Foundations of Computer Graphics Torsten Möller

Curves. Computer Graphics CSE 167 Lecture 11

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

3D Modeling Parametric Curves & Surfaces

Four equations are necessary to evaluate these coefficients. Eqn

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

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

2D Spline Curves. CS 4620 Lecture 13

Lecture 8. Divided Differences,Least-Squares Approximations. Ceng375 Numerical Computations at December 9, 2010

NURBS: Non-Uniform Rational B-Splines AUI Course Denbigh Starkey

ME 261: Numerical Analysis Lecture-12: Numerical Interpolation

Review of Tuesday. ECS 175 Chapter 3: Object Representation

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

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

Handout 4 - Interpolation Examples

Bezier Curves, B-Splines, NURBS

ECE 600, Dr. Farag, Summer 09

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

Introduction to the Mathematical Concepts of CATIA V5

The Free-form Surface Modelling System

Roadmap for tonight. What are Bezier curves (mathematically)? Programming Bezier curves (very high level view).

B-Spline Polynomials. B-Spline Polynomials. Uniform Cubic B-Spline Curves CS 460. Computer Graphics

B-spline Curves. Smoother than other curve forms

PS Geometric Modeling Homework Assignment Sheet I (Due 20-Oct-2017)

Tópicos de Computação Gráfica Topics in Computer Graphics 10509: Doutoramento em Engenharia Informática. Chap. 2 Rasterization.

2D Spline Curves. CS 4620 Lecture 18

8 Project # 2: Bézier curves

(Refer Slide Time: 00:02:24 min)

CS-184: Computer Graphics

Curves and Surfaces. Shireen Elhabian and Aly A. Farag University of Louisville

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

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

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

COMPUTER AIDED ENGINEERING DESIGN (BFF2612)

MA 323 Geometric Modelling Course Notes: Day 21 Three Dimensional Bezier Curves, Projections and Rational Bezier Curves

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

Sung-Eui Yoon ( 윤성의 )

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

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

TO DUY ANH SHIP CALCULATION

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

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

Grade 9 Math Terminology

End-Term Examination

Keyword: Quadratic Bézier Curve, Bisection Algorithm, Biarc, Biarc Method, Hausdorff Distances, Tolerance Band.

Spline Methods Draft. Tom Lyche and Knut Mørken. Department of Informatics Centre of Mathematics for Applications University of Oslo

Interpolation - 2D mapping Tutorial 1: triangulation

Intro to Curves Week 4, Lecture 7

INF3320 Computer Graphics and Discrete Geometry

Mathematics 350 Section 6.3 Introduction to Fractals

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

Gardener s spline curve

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

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

COMP3421. Global Lighting Part 2: Radiosity

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

Kai Hormann, N. Sukumar. Generalized Barycentric Coordinates in Computer Graphics and Computational Mechanics

Spline Methods Draft. Tom Lyche and Knut Mørken

Rasterization. COMP 575/770 Spring 2013

Transcription:

Computer Graphics Unit VI: Curves And Fractals

Introduction Two approaches to generate curved line 1. Curve generation algorithm Ex. DDA Arc generation algorithm 2. Approximate curve by number of straight line Ex. Interpolation method DYPCOE, Akurdi, 3/31/2017 2

DDA Arc Generation Algorithm[1] 3

Interpolation Curves can be drawn with approximation method If we have some sample points which lie on required curve then we can draw curve by filling the portion by known curve ie line The gap between the sample points can be filled by finding the coordinates of the points along the curve DYPCOE, Akurdi, 3/31/2017 4

Interpolation Unknown Curve Known Sample Points DYPCOE, Akurdi, 3/31/2017 5

Interpolation Suitable mathematical equations are used to approximate the curve Polynomial functions in parametric form is used X=f x (u) Y=f y (u) Z=f z (u) Polynomial curve is passing through n sample points (x1,y1,z1).(xn,yn,zn) DYPCOE, Akurdi, 3/31/2017 6

Interpolation The function can be given as f x (u)= sum from i = 1 to n of x[i] B[i](u) f y (u)= sum from i = 1 to n of y[i] B[i](u) f z (u)= sum from i = 1 to n of z[i] B[i](u) Where B[i](u) is blending function, for each value of u, it determines how much the ith sample points affects position of the curve. For some value of u, if B[[i](u) =1, then ith sample point has complete control of the curve ie, curve will pass through that point. DYPCOE, Akurdi, 3/31/2017 7

Interpolation LeGRANGE INTERPOLATED CURVES U= -1, 0, 1. If u= -1, B 1 (u) = 1 and 0 for u=0, 1, 2..n-2 If u= 0, B 2 (u) = 1 and 0 for u= -1, 1, 2..n-2 Lagrange Interpolation Expression is given as DYPCOE, Akurdi, 3/31/2017 8

Interpolation Blending functions for four sample points are give as per below DYPCOE, Akurdi, 3/31/2017 9

Interpolation Algorithm Accept n sample points Consider first 4 sample points Calculate intermediate value of u and determine intermediate points Calculate blending function values for First section of the curve Calculate blending function values for middle section of the curve Approximate points and join points with line segment. Skip first point and add next sample point Approximate curve for middle section At last approximate last section of the curve. DYPCOE, Akurdi, 3/31/2017 10

Interpolating Polygon The sides are rounded by means of blending functions There are no first and last sections Every time polygon side smooths out with number of small lines 11

Drawbacks of Interpolation Technique 1. Blending functions were designed to sum to 1at every value of u which is not true for fractional values. 2. Slopes of two lines meeting at sample point are different so get corners instead of smooth curves. B-Splines can be used to overcome these 12

Bézier Spline Curves 13

Bézier Curves Consider the case of n+1 control points denoted as p k =(x k, y k, z k ) where k varies from 0 to n The coordinate positions are blended to produce the position vector P(u) which describes the path of the Bézier polynomial function between p 0 and p n P( u) n k 0 p k BEZ ( u), 0 u k, n 1 14

Bézier Curves (cont ) The Bézier blending functions BEZ k,n (u) are the Bernstein polynomials BEZ k, n ( u) k nk C( n, k) u (1 u) where parameters C(n,k) are the binomial coefficients n! C( n, k) k!( n k)! 15

Bézier Curves (cont ) So, the individual curve coordinates can be given as follows n k n k k u BEZ x u x 0, ) ( ) ( n k n k k u BEZ z u z 0, ) ( ) ( n k n k k u BEZ y u y 0, ) ( ) ( 16

Important Properties Of Bézier Curves The first and last control points are the first and last point on the curve P(0) = p 0 P(1) = p n The curve lies within the convex hull as the Bézier blending functions are all positive and sum to 1 n k 0 BEZ k, n( u) 1 17

Midpoint Approach for Bezier Curve 18

Fractal Fractals are rough or fragmented geometric shaped object that is both self-similar and chaotic. self-similar: Fractal that can be subdivided into parts, each of which is exactly or statistically a reduced-size copy of the whole chaotic: Fractals are infinitely complex. These beautiful objects of large complexity are generated by mathematical processes. 19

Hilbert Curve Order 1 Order 2 Order 3 20

Triadic Koch Curve N = Number of self similar copies S = scale factor D = dimension N= S D 4 = 3 D D=log4/log3 = 1.26 21

The Intel i860 64 Bit Processor[2] 22

Kepler GK110 Full chip block diagram[3] 23

SMX processor architecture [3] 24

References [1] S. Harrington, Computer Graphics, 2nd Edition, McGraw-Hill Publications, 1987, ISBN 0 07 100472 6. [2] i860_hardware_design_guide_feb89.pdf [3] NVIDIA-Kepler-GK110-Architecture-Whitepaper.pdf 25