CS 4204 Computer Graphics

Similar documents
Picking and Curves Week 6

Curves and Surfaces. CS 537 Interactive Computer Graphics Prof. David E. Breen Department of Computer Science

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

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

OUTLINE. Quadratic Bezier Curves Cubic Bezier Curves

EECS 487: Interactive Computer Graphics f

Summer 2017 MATH Suggested Solution to Exercise Find the tangent hyperplane passing the given point P on each of the graphs: (a)

Curve Modeling (Spline) Dr. S.M. Malaek. Assistant: M. Younesi

Design considerations

Hardware-Accelerated Free-Form Deformation

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

Curves and Surface I. Angel Ch.10

Bias of Higher Order Predictive Interpolation for Sub-pixel Registration

Today. B-splines. B-splines. B-splines. Computergrafik. Curves NURBS Surfaces. Bilinear patch Bicubic Bézier patch Advanced surface modeling

Curves and Surfaces 1

Image Denoising Algorithms

Reading. 13. Texture Mapping. Non-parametric texture mapping. Texture mapping. Required. Watt, intro to Chapter 8 and intros to 8.1, 8.4, 8.6, 8.8.

Reading. 11. Texture Mapping. Texture mapping. Non-parametric texture mapping. Required. Watt, intro to Chapter 8 and intros to 8.1, 8.4, 8.6, 8.8.

Tu P7 15 First-arrival Traveltime Tomography with Modified Total Variation Regularization

Curves and Surfaces Computer Graphics I Lecture 9

Curves and Surfaces Computer Graphics I Lecture 10

Central issues in modelling

Lecture 10. Diffraction. incident

Multi-lingual Multi-media Information Retrieval System

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

The Intersection of Two Ringed Surfaces and Some Related Problems

Blended Deformable Models

A sufficient condition for spiral cone beam long object imaging via backprojection

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

Sung-Eui Yoon ( 윤성의 )

Mathematician Helaman Ferguson combines science

Use Trigonometry with Right Triangles

Introduction to Computer Graphics

COMPUTER AIDED ENGINEERING DESIGN (BFF2612)

Computer-Aided Mechanical Design Using Configuration Spaces

3D Modeling Parametric Curves & Surfaces

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

AUTOMATIC REGISTRATION FOR REPEAT-TRACK INSAR DATA PROCESSING

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

Networks An introduction to microcomputer networking concepts

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

Continuity Smooth Path Planning Using Cubic Polynomial Interpolation with Membership Function

CS-184: Computer Graphics

CS-184: Computer Graphics. Today

POWER-OF-2 BOUNDARIES

ABSOLUTE DEFORMATION PROFILE MEASUREMENT IN TUNNELS USING RELATIVE CONVERGENCE MEASUREMENTS

COMPOSITION OF STABLE SET POLYHEDRA

Curve and Surface Basics

On the Computational Complexity and Effectiveness of N-hub Shortest-Path Routing

Intro to Curves Week 1, Lecture 2

Curves and Surfaces. CS475 / 675, Fall Siddhartha Chaudhuri

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

3. The three points (2, 4, 1), (1, 2, 2) and (5, 2, 2) determine a plane. Which of the following points is in that plane?

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

OPTI-502 Optical Design and Instrumentation I John E. Greivenkamp Homework Set 9 Fall, 2018

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

Last lecture: finishing up Chapter 22

Intro to Modeling Modeling in 3D

Bezier Curves, B-Splines, NURBS

The LS-STAG Method : A new Immersed Boundary / Level-Set Method for the Computation of Incompressible Viscous Flows in Complex Geometries

Geometric Modeling of Curves

Second Order Variational Optic Flow Estimation

The effectiveness of PIES comparing to FEM and BEM for 3D elasticity problems

10.2 Solving Quadratic Equations by Completing the Square

Evaluating Influence Diagrams

11 - Bump Mapping. Bump-Mapped Objects. Bump-Mapped Objects. Bump-Mapped Objects. Limitations Of Texture Mapping. Bumps: Perturbed Normals

Computer Graphics I Lecture 11

Dr Paolo Guagliardo. Fall 2018

Information Coding / Computer Graphics, ISY, LiTH. Splines

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

Computer Graphics Curves and Surfaces. Matthias Teschner

This chapter is based on the following sources, which are all recommended reading:

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

Intro to Curves Week 4, Lecture 7

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

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

Object Pose from a Single Image

GEAR SHAPED CUTTER A PROFILING METHOD DEVELOPED IN GRAPHICAL FORM

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

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

Reading. Parametric surfaces. Surfaces of revolution. Mathematical surface representations. Required:

Optimal Sampling in Compressed Sensing

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

KINEMATICS OF FLUID MOTION

Compound Catadioptric Stereo Sensor for Omnidirectional Object Detection

The extra single-cycle adders

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

Review Multicycle: What is Happening. Controlling The Multicycle Design

Estimating Model Parameters and Boundaries By Minimizing a Joint, Robust Objective Function

5 Performance Evaluation

CS770/870 Spring 2017 Curve Generation

Multiple-Choice Test Chapter Golden Section Search Method Optimization COMPLETE SOLUTION SET

Stereopsis Raul Queiroz Feitosa

Application of Gaussian Curvature Method in Development of Hull Plate Surface

IDENTIFICATION OF THE AEROELASTIC MODEL OF A LARGE TRANSPORT CIVIL AIRCRAFT FOR CONTROL LAW DESIGN AND VALIDATION

CGT 581 G Geometric Modeling Curves

METAMODEL FOR SOFTWARE SOLUTIONS IN COMPUTED TOMOGRAPHY

Sketch-Based Aesthetic Product Form Exploration from Existing Images Using Piecewise Clothoid Curves

CS Object Representation. Aditi Majumder, CS 112 Slide 1

2Surfaces. Design with Bézier Surfaces

Transcription:

CS 424 Compter Graphics Crves and Srfaces Yong Cao Virginia Tech Reference: Ed Angle, Interactive Compter Graphics, University of New Mexico, class notes

Crve and Srface Modeling

Objectives Introdce types of crves and srfaces Explicit Implicit Parametric Strengths and weaknesses Discss Modeling and Approximations Conditions Stability

Modeling with Crves data points approximating crve interpolating data point

What Makes a Good Representation? There are many ways to represent crves and srfaces Want a representation that is Stable Smooth Easy to evalate

Explicit Representation Most familiar form of crve in 2D yf(x) Cannot represent all crves y Vertical lines Circles Extension to D x y yf(x), zg(x) The form z f(x,y) defines a srface z x

Implicit Representation Two dimensional crve(s) g(x,y) Mch more robst All lines ax+by+c Circles x 2 +y 2 -r 2 Three dimensions g(x,y,z) defines a srface Intersect two srface to get a crve

Parametric Crves Separate eqation for each spatial variable xx() yy() zz() p()[x(), y(), z()] T For max min we trace ot a crve in two or three dimensions p() p( max ) p( min )

Selecting Fnctions Usally we can select good fnctions not niqe for a given spatial crve Approximate or interpolate known data Want fnctions which are easy to evalate Want fnctions which are easy to differentiate Comptation of normals Connecting pieces (segments) Want fnctions which are smooth

Parametric Lines We can normalize to be over the interval (,) Line connecting two points p and p p() p p()(-)p +p Ray from p in the direction d p()p +d p() p p() p d p() p +d

Parametric Srfaces Srfaces reqire 2 parameters xx(,v) yy(,v) zz(,v) p(,v) [x(,v), y(,v), z(,v)] T Want same properties as crves: Smoothness Differentiability Ease of evalation y p(,v) z p(,) p(,) x p(,v)

Normals We can differentiate with respect to and v to obtain the normal at any point p v v v v ) /, z( ) /, y( ) /, x( ), p( v v v v v v v v ) /, z( ) /, y( ) /, x( ), p( v v v ), ( ), p( p n

Parametric Planes n point-vector form p(,v)p +q+vr r n q x r q three-point form p p 2 n q p p r p 2 p p p

Parametric Sphere x(,v) r cos q sin f y(,v) r sin q sin f z(,v) r cos f 6 q 8 f θ constant: circles of constant longitde f constant: circles of constant latitde Normal: n p

Crve Segments After normalizing, each crve is written p()[x(), y(), z()] T, In classical nmerical methods, we design a single global crve In compter graphics and CAD, it is better to design small connected crve segments p() join point p() q() p() q() q()

Parametric Polynomial Crves N i j x( ) cxi y( ) c yj z( ) czk i M j If NMK, we need to determine (N+) coefficients Eqivalently we need (N+) independent conditions L k k Noting that the crves for x, y and z are independent, we can define each independently in an identical manner We will se the form where p can be any of x, y, z p( ) L k c k k

Why Polynomials Easy to evalate Continos and differentiable everywhere Mst worry abot continity at join points inclding continity of derivatives p() q() join point p() q() bt p () q ()

Cbic Parametric Polynomials NML, gives balance between ease of evalation and flexibility in design p( ) k c k For coefficients to determine for each of x, y and z Seek for independent conditions for varios vales of reslting in 4 eqations in 4 nknowns for each of x, y and z Conditions are a mixtre of continity reqirements at the join points and conditions for fitting the data k

Cbic Polynomial Srfaces p(,v)[x(,v), y(,v), z(,v)] T where p(, v) i j c ij i v j p is any of x, y or z Need 48 coefficients ( independent sets of 6) to determine a srface patch

Objectives Introdce the types of crves Interpolating Hermite Bezier B-spline Analyze their performance

Matrix-Vector Form c k k k ) p( c c c c 2 c 2 define c c T T ) p( then

Interpolating Crve p p p p 2 Given for data (control) points p, p,p 2, p determine cbic p() which passes throgh them Mst find c,c,c 2, c

Interpolation Eqations apply the interpolating conditions at, /, 2/, p p()c p p(/)c +(/)c +(/) 2 c 2 +(/) c p 2 p(2/)c +(2/)c +(2/) 2 c 2 +(2/) c p p()c +c +c 2 +c or in matrix form with p [p p p 2 p ] T pac 2 2 2 2 2 A

Interpolation Matrix Solving for c we find the interpolation matrix MI A 5.5 9 4.5 9 22.5.5 4.5 8.5 4.5 4.5 cm I p Note that M I does not depend on inpt data and can be sed for each segment in x, y, and z

Interpolating Mltiple Segments se p [p p p 2 p ] T se p [p p 4 p 5 p 6 ] T Get continity at join points bt not continity of derivatives

Blending Fnctions Rewriting the eqation for p() p() T c T M I p b() T p where b() [b () b () b 2 () b ()] T is an array of blending polynomials sch that p() b ()p + b ()p + b 2 ()p 2 + b ()p b () -4.5(-/)(-2/)(-) b ().5 (-2/)(-) b 2 () -.5 (-/)(-) b () 4.5 (-/)(-2/)

Blending Fnctions These fnctions are not smooth Hence the interpolation polynomial is not smooth

Interpolating Patch p(, v) i o j c ij i v j Need 6 conditions to determine the 6 coefficients c ij Choose at,v, /, 2/,

Matrix Form Define v [ v v 2 v ] T C [c ij ] P [p ij ] p(,v) T Cv If we observe that for constant (v), we obtain interpolating crve in v (), we can show CM I PM I p(,v) T M I PM IT v

Blending Patches p v b b v p ij j j i o i ) ( ) ( ), ( Each b i ()b j (v) is a blending patch Shows that we can bild and analyze srfaces from or knowledge of crves

Other Types of Crves and Srfaces How can we get arond the limitations of the interpolating form Lack of smoothness Discontinos derivatives at join points We have for conditions (for cbics) that we can apply to each segment Use them other than for interpolation Need only come close to the data

Hermite Form p () p () p() p() Use two interpolating conditions and two derivative conditions per segment Ensres continity and first derivative continity between segments

Eqations Interpolating conditions are the same at ends p() p c p() p c +c +c 2 +c Differentiating we find p () c +2c 2 + 2 c Evalating at end points p () p c p () p c +2c 2 +c

Matrix Form c q 2 p' p' p p Solving, we find cm H q where M H is the Hermite matrix 2 2 2 MH

Blending Polynomials p() b() T q + + + 2 2 2 2 2 2 2 ) b( Althogh these fnctions are smooth, the Hermite form is not sed directly in Compter Graphics and CAD becase we sally have control points bt not derivatives However, the Hermite form is the basis of the Bezier form

Parametric and Geometric Continity We can reqire the derivatives of x, y,and z to each be continos at join points (parametric continity) Alternately, we can only reqire that the tangents of the reslting crve be continos (geometry continity) The latter gives more flexibility as we have need satisfy only two conditions rather than three at each join point

Example Here the p and q have the same tangents at the ends of the segment bt different derivatives Generate different Hermite crves This techniqes is sed in drawing applications

Higher Dimensional Approximations The techniqes for both interpolating and Hermite crves can be sed with higher dimensional parametric polynomials For interpolating form, the reslting matrix becomes increasingly more ill-conditioned and the reslting crves less smooth and more prone to nmerical errors In both cases, there is more work in rendering the reslting polynomial crves and srfaces