CSE 167 [Win 17], Lecture 11: Curves Problems Ravi Ramamoorthi

Slides:



Advertisements
Similar presentations
Lecture 4 Graphic Primitives, Circle. Drawing Circles.
Advertisements

Interpolating curves.
Lecture Notes #11 Curves and Surfaces II
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.
Lecture 10 Curves and Surfaces I
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
1 Introduction Curve Modelling Jack van Wijk TU Eindhoven.
Lecture 29 of 42 Bezier Curves and Splines Wednesday, 02 April 2008
Foundations of Computer Graphics (Fall 2012) CS 184, Lecture 11: Curves Problems
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.
Curve Offset Planar Curve Offset Based on Circle Approximation.
Offset of curves. Alina Shaikhet (CS, Technion)
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 12: Spline Curves (review) Ravi Ramamoorthi Most material.
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
Some Remarks on Subdivision Curves A B D C S S S u Find new intermediate points S that lie on the implied curve.
Computer Graphics (Fall 2005) COMS 4160, Lecture 7: Curves 2
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Curves Week 13, Mon 24 Nov 2003.
Curve Surfaces June 4, Examples of Curve Surfaces Spheres The body of a car Almost everything in nature.
Please close your laptops and turn off and put away your cell phones, and get out your note-taking materials. Today’s daily homework quiz will be given.
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.
Interactive Graphics Lecture 9: Slide 1 Interactive Graphics Lecture 9: Introduction to Spline Curves.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Polynomial Functions Topic 2: Equations of Polynomial Functions.
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.
Splines IV – B-spline Curves based on: Michael Gleicher: Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
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:
Spline Interpolation A Primer on the Basics by Don Allen.
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
1 Graphics CSCI 343, Fall 2015 Lecture 34 Curves and Surfaces III.
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:
CS552: Computer Graphics Lecture 19: Bezier Curves.
Object Modeling: Curves and Surfaces CEng 477 Introduction to Computer Graphics.
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
Curves and Surfaces.
CSE 167 [Win 17], Lecture 10: Curves 2 Ravi Ramamoorthi
Lecture 25 – Power Series Def: The power series centered at x = a:
Lecture 05: Mid-point Ellipse algorithm Dr. Manal Helal – Fall 2014
Chapter Three Part I Output Primitives CS 380.
CSE 167 [Win 17], Lecture 9: Curves 1 Ravi Ramamoorthi
Parametric Curves.
Rendering Curves and Surfaces
© University of Wisconsin, CS559 Spring 2004
Richard Anderson Lecture 27 NP Completeness
PPT9: Global and local interpolation
Introduction to Parametric Curve and Surface Modeling
Approximation and Computing Area
Richard Anderson Lecture 25 NP Completeness
Type to enter a caption. Computer Graphics Week 10 Lecture 2.
Presentation transcript:

CSE 167 [Win 17], Lecture 11: Curves Problems Ravi Ramamoorthi Computer Graphics CSE 167 [Win 17], Lecture 11: Curves Problems Ravi Ramamoorthi http://viscomp.ucsd.edu/classes/cse167/wi17

To Do Making progress on HW 2? Midterm next week (Feb 23) Any questions or issues? Midterm next week (Feb 23) CLOSED BOOK, NOTES, PHONES…. Problems similar to review sessions Covers everything in class (lectures) until Feb 21 lecture See sample midterms, final on course website Main written material in class, no final

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)