Foundations of Computer Graphics (Fall 2012) CS 184, Lecture 11: Curves Problems

Slides:



Advertisements
Similar presentations
Interpolating curves.
Advertisements

Computer Graphics (Spring 2008) COMS 4160, Lecture 6: Curves 1
BEZIER CURVES Part II. Assume we are given two endpoints labelled E1 and E2 and two control points labelled C1 and C2. create a smooth curve whose endpoints.
#8: Curves and Curved Surfaces CSE167: Computer Graphics Instructor: Ronen Barzel UCSD, Winter 2006.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 13: NURBs, Spline Surfaces Ravi Ramamoorthi Some material.
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 7: Quadric Error Metrics Ravi Ramamoorthi
© University of Wisconsin, CS559 Spring 2004
Jehee Lee Seoul National University
B-Spline Blending Functions
1 Introduction Curve Modelling Jack van Wijk TU Eindhoven.
1 Curves and Surfaces. 2 Representation of Curves & Surfaces Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized.
Bezier Curves and Splines David Eno MAT 499 Fall ‘06.
Lecture 29 of 42 Bezier Curves and Splines Wednesday, 02 April 2008
CS CS 175 – Week 9 B-Splines Blossoming, Bézier Splines.
Informationsteknologi Monday, December 10, 2007Computer Graphics - Class 161 Today’s class Curve fitting Evaluators Surfaces.
Rational Bezier Curves
Offset of curves. Alina Shaikhet (CS, Technion)
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 12: Spline Curves (review) Ravi Ramamoorthi Most material.
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.
Computer Graphics (Fall 2008) COMS 4160, Lectures 8,9: Curves Problems
ENDS 375 Foundations of Visualization Geometric Representation 9/30/04.
Computer Graphics (Fall 2005) COMS 4160, Lecture 7: Curves 2
RASTER CONVERSION ALGORITHMS FOR CURVES: 2D SPLINES 2D Splines - Bézier curves - Spline curves.
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.
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.
Splines III – Bézier Curves
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.
11/19/02 (c) 2002, University of Wisconsin, CS 559 Last Time Many, many modeling techniques –Polygon meshes –Parametric instancing –Hierarchical modeling.
A D V A N C E D C O M P U T E R G R A P H I C S CMSC 635 January 15, 2013 Spline curves 1/23 Curves and Surfaces.
CS 376 Introduction to Computer Graphics 04 / 23 / 2007 Instructor: Michael Eckmann.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Review of Interpolation. A method of constructing a function that crosses through a discrete set of known data points.
Consider the following: Now, use the reciprocal function and tangent line to get an approximation. Lecture 31 – Approximating Functions
Vector Computer Graphic. Vector entities Line Circle, Ellipse, arc,… Curves: Spline, Bezier’s curve, … … Areas Solids Models.
Foundations of Computer Graphics (Fall 2012) CS 184, Lectures 13,14: Reviews Transforms, OpenGL
Cornell CS465 Fall 2004 Lecture 15© 2004 Steve Marschner 1 2D Spline Curves CS 465 Lecture 15.
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.
Splines IV – B-spline Curves based on: Michael Gleicher: Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
Computer Graphics Representing Curves and Surfaces.
CS 376 Introduction to Computer Graphics 04 / 25 / 2007 Instructor: Michael Eckmann.
L5 – Curves in GIS NGEN06 & TEK230: Algorithms in Geographical Information Systems by: Sadegh Jamali (source: Lecture notes in GIS, Lars Harrie) 1 L5-
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.
Rendering Curves and Surfaces Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico 1 Angel:
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Parametric Curves & Surfaces Greg Humphreys University of Virginia CS 445, Spring.
Computer Graphics (Fall 2003) COMS 4160, Lecture 10: Curves 1 Ravi Ramamoorthi
Parametric Curves CS 318 Interactive Computer Graphics John C. Hart.
Slide 129 October 1999CS Computer Graphics (Top Changwatchai) Bézier Curves - Results of Derivation Tangents at endpoints are equal to endpoint slopes.
1 Graphics CSCI 343, Fall 2015 Lecture 34 Curves and Surfaces III.
Splines Sang Il Park Sejong University. Particle Motion A curve in 3-dimensional space World coordinates.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 12: Curves 1
Computing & Information Sciences Kansas State University Lecture 30 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 30 of 42 Wednesday, 09.
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:
Curves University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013 Tamara Munzner.
CS552: Computer Graphics Lecture 19: Bezier Curves.
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
10/10/2006TCSS458A Isabelle Bichindaritz1 Line and Circle Drawing Algorithms.
Introduction to Parametric Curve and Surface Modeling.
CSCI480/582 Lecture 9 Chap.2.2 Cubic Splines – Hermit and Bezier Feb, 11, 2009.
CS5500 Computer Graphics May 11, 2006
CSE 167 [Win 17], Lecture 10: Curves 2 Ravi Ramamoorthi
Lecture 25 – Power Series Def: The power series centered at x = a:
Chapter Three Part I Output Primitives CS 380.
CSE 167 [Win 17], Lecture 11: Curves Problems Ravi Ramamoorthi
CSE 167 [Win 17], Lecture 9: Curves 1 Ravi Ramamoorthi
© University of Wisconsin, CS559 Spring 2004
Introduction to Parametric Curve and Surface Modeling
Presentation transcript:

Foundations of Computer Graphics (Fall 2012) CS 184, Lecture 11: Curves Problems

To Do  Making progress on HW 3?  Any questions or issues?  Midterm next week (Oct 11)  CLOSED BOOK, NOTES, PHONES….  Problems similar to review sessions  Covers everything in class (lectures) until Oct 2 lecture  See last year’s midterm, final on course website

About this session  Review session for unit on curves  Go over problems similar to midterm  (Mostly) done on blackboard; problems PDF online Motivations  Technical issues and problems not fully covered in lecture  Chance for you to ask questions in depth (we do have some problems to go over, but it’s also question-driven)

Questions?

Problem 1 Consider a uniform quadratic B-spline. Consider a segment with control points (1,0) (1,1) and (0,1) in that order.  What are the end-points of the curve segment?  What is the mid-point of the curve segment?

Answer 1 Consider a uniform quadratic B-spline. Consider a segment with control points (1,0) (1,1) and (0,1) in that order.  What are the end-points of the curve segment?  What is the mid-point of the curve segment? Answer: LEFT (1, ½) MIDDLE (7/8, 7/8) RIGHT (½,1)

Problem 2 Consider a uniform cubic B-spline. Consider a segment with control points (-1,-1) (-1,1) (1,1) and (1,-1) in that order.  What are the end-points of the curve segment?  What is the mid-point of the curve segment?

Answer 2 Consider a uniform cubic B-spline. Consider a segment with control points (-1,-1) (-1,1) (1,1) and (1,-1) in that order.  What are the end-points of the curve segment?  What is the mid-point of the curve segment? Answer: LEFT (-2/3,2/3) MID (0,11/12) RIGHT (2/3,2/3)

Problem 5 Consider the problem of using a Bezier curve to approximate a circle. There exist efficient algorithms to draw Bezier curves, so it is often convenient to reduce other primitives to them. Because of symmetry in a circle, we will consider only the positive quadrant, i.e. with arc endpoints (1,0) and (0,1). What are the control points of a quadratic Bezier curve that best approximates the quarter circle? In particular, the end-points and tangents at those end points of the approximating Bezier curve must match those for the quarter circle. What is the maximum error in this approximation, i.e. the error at the mid-point of the Bezier curve?

Answer 5 Consider the problem of using a Bezier curve to approximate a circle. There exist efficient algorithms to draw Bezier curves, so it is often convenient to reduce other primitives to them. Because of symmetry in a circle, we will consider only the positive quadrant, i.e. with arc endpoints (1,0) and (0,1). What are the control points of a quadratic Bezier curve that best approximates the quarter circle? In particular, the end-points and tangents at those end points of the approximating Bezier curve must match those for the quarter circle. What is the maximum error in this approximation, i.e. the error at the mid-point of the Bezier curve? Answer: (1,0) (1,1) (0,1) Maximum error is 0.06

Problem 6 Both Bezier and B-spline curves are polynomials. Given any actual curve segment, it can be written as either a Bezier or a B-spline curve of the same degree, but with different control points. First, for a Bezier curve with control points (1,0) (1,1) and (0,1), find the corresponding B-spline control points. Second, for a B- spline curve with control points (1,0) (1,1) and (0,1), find the Bezier control points.

Answer 6 Both Bezier and B-spline curves are polynomials. Given any actual curve segment, it can be written as either a Bezier or a B-spline curve of the same degree, but with different control points. First, for a Bezier curve with control points (1,0) (1,1) and (0,1), find the corresponding B-spline control points. Second, for a B- spline curve with control points (1,0) (1,1) and (0,1), find the Bezier control points. Answer: Bezier is non-uniform B-spline, or uniform with control points (1,-1),(1,1),(-1,1). Bezier control points are (1/2, 1) (1,1) (1,1/2)