Geometric Modeling 91.580.201 Notes on Curve and Surface Continuity Parts of Mortenson, Farin, Angel, Hill and others.

Slides:



Advertisements
Similar presentations
Arc-length computation and arc-length parameterization
Advertisements

Splines I – Curves and Properties
Lecture Notes #11 Curves and Surfaces II
Parametric Curves Ref: 1, 2.
Chapter 9: Vector Differential Calculus Vector Functions of One Variable -- a vector, each component of which is a function of the same variable.
© University of Wisconsin, CS559 Spring 2004
2002 by Jim X. Chen: Bezier Curve Bezier Curve.
Chapter 14 Section 14.5 Curvilinear Motion, Curvature.
Lecture 10 Curves and Surfaces I
Vector-Valued Functions and Motion in Space Dr. Ching I Chen.
Computer Aided Engineering Design
Kinematics of Particles
Chapter 13 – Vector Functions
Copyright © Cengage Learning. All rights reserved.
© University of Wisconsin, CS559 Spring 2004
B-Spline Blending Functions
Dr. S.M. Malaek Assistant: M. Younesi
1 Curves and Surfaces. 2 Representation of Curves & Surfaces Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized.
Slide 127 October 1999CS Computer Graphics (Top Changwatchai) Review of Spline Concepts Sections 10-6 to in Hearn & Baker Splines can be 2D.
Offset of curves. Alina Shaikhet (CS, Technion)
Curves Locus of a point moving with one degree of freedom
Geometric Modeling Surfaces Mortenson Chapter 6 and Angel Chapter 9.
Cubic Bezier and B-Spline Curves
Curves Mortenson Chapter 2-5 and Angel Chapter 9
Modelling: Curves Week 11, Wed Mar 23
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Curves Week 13, Mon 24 Nov 2003.
1 Representing Curves and Surfaces. 2 Introduction We need smooth curves and surfaces in many applications: –model real world objects –computer-aided.
Parts of Mortenson Chapter 6-9,
Geodetic Control Network
Curves and Surfaces (cont’) Amy Zhang. Conversion between Representations  Example: Convert a curve from a cubic B-spline curve to the Bézier form:
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.
(Spline, Bezier, B-Spline)
V. Space Curves Types of curves Explicit Implicit Parametric.
Curves.
Chapter 10-Vector Valued Functions Calculus, 2ed, by Blank & Krantz, Copyright 2011 by John Wiley & Sons, Inc, All Rights Reserved.
Quadratic Surfaces. SPLINE REPRESENTATIONS a spline is a flexible strip used to produce a smooth curve through a designated set of points. We.
Splines IV – B-spline Curves based on: Michael Gleicher: Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
Parametric Surfaces Define points on the surface in terms of two parameters Simplest case: bilinear interpolation s t s x(s,t)x(s,t) P 0,0 P 1,0 P 1,1.
Ship Computer Aided Design MR 422. Geometry of Curves 1.Introduction 2.Mathematical Curve Definitions 3.Analytic Properties of Curves 4.Fairness of Curves.
CS 376 Introduction to Computer Graphics 04 / 25 / 2007 Instructor: Michael Eckmann.
Representation of Curves & Surfaces Prof. Lizhuang Ma Shanghai Jiao Tong University.
04/18/02(c) 2002 University of Wisconsin Last Time Hermite Curves Bezier Curves.
L5 – Curves in GIS NGEN06 & TEK230: Algorithms in Geographical Information Systems by: Sadegh Jamali (source: Lecture notes in GIS, Lars Harrie) 1 L5-
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Parametric Curves & Surfaces Greg Humphreys University of Virginia CS 445, Spring.
Splines I – Curves and Properties based on: Michael Gleicher Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
11/26/02(C) University of Wisconsin Last Time BSplines.
CSCE 441: Keyframe Animation/Smooth Curves (Cont.) Jinxiang Chai.
CSCE 441: Keyframe Animation/Smooth Curves (Cont.) Jinxiang Chai.
(c) 2002 University of Wisconsin
Splines Sang Il Park Sejong University. Particle Motion A curve in 3-dimensional space World coordinates.
Ship Computer Aided Design
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.
Object Modeling: Curves and Surfaces CEng 477 Introduction to Computer Graphics.
Introduction to Parametric Curve and Surface Modeling.
CSCI480/582 Lecture 9 Chap.2.2 Cubic Splines – Hermit and Bezier Feb, 11, 2009.
COMPUTER GRAPHICS CHAPTERS CS 482 – Fall 2017 SPLINES
© University of Wisconsin, CS559 Spring 2004
Calculus III Exam Review
Curve & Surface.
Representation of Curves & Surfaces
Chapter 10-2: Curves.
© University of Wisconsin, CS559 Fall 2004
© University of Wisconsin, CS559 Fall 2004
CURVES CAD/CAM/CAE.
© University of Wisconsin, CS559 Spring 2004
Homework Aid: Cycloid Motion
CSCE 441: Keyframe Animation/Smooth Curves (Cont.)
Introduction to Parametric Curve and Surface Modeling
Presentation transcript:

Geometric Modeling Notes on Curve and Surface Continuity Parts of Mortenson, Farin, Angel, Hill and others

From Previous Lectures

Continuity at Join Points (from Lecture 2) Discontinuous: physical separation Parametric Continuity Positional ( C 0 ): no physical separation C 1 : C 0 and matching first derivatives C 2 : C 1 and matching second derivatives Geometric Continuity Positional ( G 0 ) = C 0 Tangential ( G 1 ) : G 0 and tangents are proportional, point in same direction, but magnitudes may differ Curvature ( G 2 ) : G 1 and tangent lengths are the same and rate of length change is the same source: Mortenson, Angel (Ch 9), Wiki

Continuity at Join Points Hermite curves provide C 1 continuity at curve segment join points. –matching parametric 1 st derivatives Bezier curves provide C 0 continuity at curve segment join points. –Can provide G 1 continuity given collinearity of some control points (see next slide) Cubic B-splines can provide C 2 continuity at curve segment join points. –matching parametric 2 nd derivatives source: Mortenson, Angel (Ch 9), Wiki

Composite Bezier Curves (from Lecture 3) Evaluate at u =0 and u =1 to show tangents related to first and last control polygon line segment. Joining adjacent curve segments is an alternative to degree elevation. source: Mortenson Collinearity of cubic Bezier control points produces G 1 continuity at join point: For G 2 continuity at join point in cubic case, 5 vertices must be coplanar. (this needs further explanation – see later slide)

Composite Bezier Surface (from Lecture 5) Bezier surface patches can provide G 1 continuity at patch boundary curves. For common boundary curve defined by control points p 14, p 24, p 34, p 44, need collinearity of: Two adjacent patches are C r across their common boundary iff all rows of control net vertices are interpretable as polygons of C r piecewise Bezier curves. source: Mortenson, Farin Cubic B-splines can provide C 2 continuity at surface patch boundary curves.

Supplemental Material

Continuity within a (Single) Curve Segment (from Prior Lecture) Parametric C k Continuity: –Refers to the parametric curve representation and parametric derivatives –Smoothness of motion along the parametric curve –“A curve P ( t ) has k th-order parametric continuity everywhere in the t -interval [ a, b ] if all derivatives of the curve, up to the k th, exist and are continuous at all points inside [ a, b ].” –A curve with continuous parametric velocity and acceleration has 2 nd -order parametric continuity. source: Hill, Ch 10 apply product rule 1 st derivatives of parametric expression are continuous, so spiral has 1 st -order ( C 1 ) parametric continuity. Note that C k continuity implies C i continuity for i < k. Example

Continuity within a (Single) Curve Segment (continued) Geometric G k Continuity in interval [ a, b ] (assume P is curve): –“Geometric continuity requires that various derivative vectors have a continuous direction even though they might have discontinuity in speed.” –G 0 = C 0 –G 1 : P’ ( c- ) = k P’ ( c+ ) for some constant k for every c in [ a, b ]. Velocity vector may jump in size, but its direction is continuous. –G 2 : P’ ( c- ) = k P’ ( c+ ) for some constant k and P’’ ( c- ) = m P’’ ( c+ ) for some constants k and m for every c in [ a, b ]. Both 1 st and 2 nd derivative directions are continuous. Note that, for these definitions, G k continuity implies G i continuity for i < k. source: Hill, Ch 10 These definitions suffice for that textbook’s treatment, but there is more to the story…

Reparameterization Relationship Curve has G r continuity if an arc-length reparameterization exists after which it has C r continuity. “Two curve segments are G k geometric continuous at the joining point if and only if there exist two parameterizations, one for each curve segment, such that all i th derivatives,, computed with these new parameterizations agree at the joining point.” source: Farin, Ch 10 source: cs.mtu.edu

Continuity at Join Point Defined using parametric differential properties of curve or surface C k more restrictive than G k source: Mortenson Ch 3, p Defined using intrinsic differential properties of curve or surface (e.g. unit tangent vector, curvature), independent of parameterization. G 1 : common tangent line G 2 : same curvature, requiring conditions from Hill (Ch 10) & (see differential geometry slides) –Osculating planes coincide or –Binormals are collinear. Parametric Continuity Geometric Continuity

Parametric Cross-Plot source: Farin, Ch 6 For Farin’s discussion of C 1 continuity at join point, cross-plot notion is useful.

Composite Cubic Bezier Curves (continued) source: Farin, Ch 5 curves are identical in x, y space Parametric C 1 continuity, with parametric domains considered, requires (for x and y components): (5.30) Domain violates (5.30) for y component. Domain satisfies (5.30) for y component.

Composite Bezier Curves source: Mortenson, Ch 4, p For G 2 continuity at join point in cubic case, 5 vertices must be coplanar. (follow-up from prior slide) Achieving this might require adding control points (degree elevation). curvature at endpoints of curve segment consistent with:

C 2 Continuity at Curve Join Point “Full” C 2 continuity at join point requires: –Same radius of curvature* –Same osculating plane* –These conditions hold for curves p( u ) and r( u ) if: source: Mortenson, Ch 12 * see later slides on topics in differential geometry

Piecewise Cubic B-Spline Curve Smoothness at Joint source: Mortenson, Ch 5 curvature discontinuity familiar situation Incorrect: should be C 2

Control Point Multiplicity Effect on Uniform Cubic B-Spline Joint C 2 and G 2 control point multiplicities = 1 C 2 and G 1 One control point multiplicity = 2 C 2 and G 0 One control point multiplicity = 3 C 2 and G 0 One control point multiplicity = 4 One curve segment degenerates into a single point. Other curve segment is a straight line. First derivatives at join point are equal but vanish. Second derivatives at join point are equal but vanish.

If a knot has multiplicity r, then the B- spline curve of degree n has smoothness C n-r at that knot. Knot Multiplicity Effect on Non- uniform B-Spline source: Farin, Ch 8

A Few Differential Geometry Topics Related to Continuity

Local Curve Topics Principal Vectors –Tangent –Normal –Binormal Osculating Plane and Circle Frenet Frame Curvature Torsion Revisiting the Definition of Geometric Continuity source: Ch 12 Mortenson

Intrinsic Definition (adapted from earlier lecture) No reliance on external frame of reference Requires 2 equations as functions of arc length* s : 1)Curvature: 2)Torsion: For plane curves, alternatively: source: Mortenson *length measured along the curve Torsion (in 3D) measures how much curve deviates from a plane curve. Treated in more detail in Chapter 12 of Mortenson and Chapter 10 of Farin.

Calculating Arc Length Approximation: For parametric interval u 1 to u 2, subdivide curve segment into n equal pieces. source: Mortenson, p. 401 where using is more accurate.

Tangent unit tangent vector: source: Mortenson, p. 388

Normal Plane Plane through p i perpendicular to t i source: Mortenson, p

Principal Normal Vector and Line Moving slightly along curve in neighborhood of p i causes tangent vector to move in direction specified by: source: Mortenson, p Principal normal vector is on intersection of normal plane with (osculating) plane shown in (a). Use dot product to find projection of onto Binormal vector lies in normal plane.

Osculating Plane Limiting position of plane defined by p i and two neighboring points p j and p h on the curve as these neighboring points independently approach p i. Note: p i, p j and p h cannot be collinear. Tangent vector lies in osculating plane. i i source: Mortenson, p Normal vector lies in osculating plane.

Frenet Frame Rectifying plane at p i is the plane through p i and perpendicular to the principal normal n i : i i i source: Mortenson, p Osculating Plane Normal Plane Note changes to Mortenson’s figure 12.5.

Curvature Radius of curvature is  i and curvature at point p i on a curve is: source: Mortenson, p Curvature of a planar curve in x, y plane: Recall that vector lies in the osculating plane. Curvature is intrinsic and does not change with a change of parameterization.

Torsion Torsion at p i is limit of ratio of angle between binormal at p i and binormal at neighboring point p h to arc-length of curve between p h and p i, as p h approaches p i along the curve. source: Mortenson, p Torsion is intrinsic and does not change with a change of parameterization.

Reparameterization Relationship Curve has G r continuity if an arc-length reparameterization exists after which it has C r continuity. This is equivalent to these 2 conditions: –C r-2 continuity of curvature –C r-3 continuity of torsion source: Farin, Ch 10, p.189 & Ch 11, p. 200 Local properties torsion and curvature are intrinsic and uniquely determine a curve.

Local Surface Topics Fundamental Forms Tangent Plane Principal Curvature Osculating Paraboloid source: Ch 12 Mortenson

Local Properties of a Surface Fundamental Forms Given parametric surface p( u, w ) Form I : Form II : Useful for calculating arc length of a curve on a surface, surface area, curvature, etc. Local properties first and second fundamental forms are intrinsic and uniquely determine a surface. source: Mortenson, p

Local Properties of a Surface Tangent Plane source: Mortenson, p. 406 q p(ui,wi)p(ui,wi) components of parametric tangent vectors p u ( u i, w i ) and p w ( u i,w i )

Local Properties of a Surface Principal Normal Curvature Derive curvature of all parametric curves C on parametric surface S passing through point p with same tangent line l at p. source: Mortenson, p in tangent plane with parametric direction dw/du contains l normal curvature vector k n = projection of curvature vector k onto n at p normal curvature:

Local Properties of a Surface Principal Normal Curvature (continued) source: Mortenson, p typographical error? yes Rotating a plane around the normal can change the curvature  n. curvature extrema: principal normal curvatures

Local Properties of a Surface Osculating Paraboloid source: Mortenson, p. 412 Second fundamental form helps to measure distance of surface from tangent plane. As q approaches p: Osculating Paraboloid

Local Properties of a Surface Local Surface Characterization Elliptic Point: locally convex Hyperbolic Point: “saddle point” source: Mortenson, p typographical error? no Planar Point (not shown) Parabolic Point: single line in tangent plane along which d =0