• Keine Ergebnisse gefunden

Geometric Modeling (WS 2021/22)

N/A
N/A
Protected

Academic year: 2021

Aktie "Geometric Modeling (WS 2021/22)"

Copied!
263
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Geometric Modeling (WS 2021/22)

Martin Held

FB Computerwissenschaften Universität Salzburg A-5020 Salzburg, Austria

held@cs.sbg.ac.at

July 20, 2021

Computational Geometry and Applications Lab UNIVERSIT ¨AT SALZBURG

(2)

Personalia

Instructor (VO+PS): M. Held.

Email: held@cs.sbg.ac.at.

Base-URL: https://www.cosy.sbg.ac.at/˜held.

Office: Universität Salzburg, Computerwissenschaften, Rm. 1.20, Jakob-Haringer Str. 2, 5020 Salzburg-Itzling.

Phone number (office): (0662) 8044-6304.

Phone number (secr.): (0662) 8044-6328.

(3)

Formalia

URL of course (VO+PS): Base-URL/teaching/geom_mod/geom_mod.html.

Lecture times (VO): Friday 1245–1445.

Venue (VO): T03, Computerwissenschaften, Jakob-Haringer Str. 2.

Lecture times (PS): Friday 1120–1220.

Venue (PS): T03, Computerwissenschaften, Jakob-Haringer Str. 2.

Note — PS is graded according to continuous-assessment mode!

(4)

Electronic Slides and Online Material

In addition to these slides, you are encouraged to consult the WWW home-page of this lecture:

https://www.cosy.sbg.ac.at/˜held/teaching/geom_mod/geom_mod.html.

In particular, this WWW page contains up-to-date information on the course, plus links to online notes, slides and (possibly) sample code.

(5)

A Few Words of Warning

I I hope that these slides will serve as a practice-minded introduction to various aspects of geometric modeling. I would like to warn you explicitly not to regard these slides as the sole source of information on the topics of my course. It may and will happen that I’ll use the lecture for talking about subtle details that need not be covered in these slides! In particular, the slides won’t contain all sample calculations, proofs of theorems, demonstrations of algorithms, or solutions to problems posed during my lecture. That is, by making these slides available to you I do not intend to encourage you to attend the lecture on an irregular basis.

I See also In Praise of Lectures by T.W. Körner.

I Abasic knowledge of calculus, linear algebra, discrete mathematics, and geometric computing, as taught in standard undergraduate CS courses, should suffice to take this course. It is my sincere intention to start at such a hypothetical low level of “typical prior undergrad knowledge”. Still, it is obvious that different educational backgrounds will result in different levels of prior knowledge. Hence, you might realize that you do already know some items covered in this course, while you lack a decent understanding of some other items which I seem to presuppose. In such a case I do expect you to refresh or fill in those missing items on your own!

(6)

Acknowledgments

A small portion of these slides is based on notes and slides originally prepared by students — most notably Dominik Kaaser, Kamran Safdar, and Marko Šuleji´c — on topics related to geometric modeling. I would like to express my thankfulness to all of them for their help. This revision and extension was carried out by myself, and I am responsible for all errors.

I am also happy to acknowledge that I benefited from material published by colleagues on diverse topics that are partially covered in this lecture. While some of the material used for this lecture was originally presented in traditional-style publications (such as textbooks), some other material has its roots in non-standard publication outlets (such as online documentations, electronic course notes, or user manuals).

Salzburg, July 2021 Martin Held

(7)

Legal Fine Print and Disclaimer

To the best of my knowledge, these slides do not violate or infringe upon somebody else’s copyrights. If copyrighted material appears in these slides then it was considered to be available in a non-profit manner and as an educational tool for teaching at an academic institution, within the limits of the “fair use” policy. For copyrighted material we strive to give references to the copyright holders (if known).

Of course, any trademarks mentioned in these slides are properties of their respective owners.

Please note that these slides are copyrighted. The copyright holder grants you the right to download and print the slides for your personal use. Any other use, including instructional use at non-profit academic institutions and re-distribution in electronic or printed form of significant portions, beyond the limits of “fair use”, requires the explicit permission of the copyright holder. All rights reserved.

These slides are made available without warrant of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. In no event shall the copyright holder and/or his respective employer be liable for any special, indirect or consequential damages or any damages whatsoever resulting from loss of use, data or profits, arising out of or in connection with the use of information provided in these slides.

(8)

Recommended Textbooks I

G. Farin.

Curves and Surfaces for CAGD: A Practical Guide.

Morgan Kaufmann, 5th edition, 2002; ISBN 978-1-55860-737-8.

R.H. Bartels, J.C. Beatty, B.A. Barsky.

An Introduction to Splines for Use in Computer Graphics and Geometric Modeling.

Morgan Kaufmann, 1995; ISBN 978-1558604001.

H. Prautzsch, W. Boehm, M. Paluszny.

Bézier and B-spline Techniques.

Springer, 2002; ISBN 978-3540437611.

J. Gallier.

Curves and Surfaces in Geometric Modeling.

Morgan Kaufmann, 1999; ISBN 978-1558605992.

http://www.cis.upenn.edu/~jean/gbooks/geom1.html R. Goldman.

An Integrated Introduction to Computer Graphics and Geometric Modeling.

CRC Press, 2019; ISBN 978-1138381476.

(9)

Recommended Textbooks II

N.M. Patrikalakis, T. Maekawa, W. Cho.

Shape Interrogation for Computer Aided Design and Manufacturing.

Springer, 2nd corr. edition, 2010; ISBN 978-3642040733.

http://web.mit.edu/hyperbook/Patrikalakis-Maekawa-Cho/

M. Botsch, L. Kobbelt, M. Pauly, P. Alliez, B. Levy.

Polygon Mesh Processing.

A K Peters/CRC Press, 2010; ISBN 978-1568814261.

http://www.pmp-book.org/

G.E. Farin, D. Hansford.

Practical Linear Algebra: A Geometry Toolbox.

A K Peters/CRC Press, 3rd edition, 2013; ISBN 978-1-4665-7956-9.

M.E. Mortenson.

Mathematics for Computer Graphics Applications.

Industrial Press, 2nd rev. edition, 1999; ISBN 978-0831131111.

A. Dickenstein, I.Z. Emiris (eds.).

Solving Polynomial Equations: Foundations, Algorithms, and Applications.

Springer, 2005; ISBN 978-3-540-27357-8.

(10)

Table of Content

Introduction

Mathematics for Geometric Modeling Bézier Curves and Surfaces

B-Spline Curves and Surfaces Approximation and Interpolation

(11)

Introduction Motivation Notation

(12)

Motivation: Evaluation of a Polynomial

I Assume that we have an intuitive understanding of polynomials and consider a polynomial inxof degreenwith coefficientsa0,a1, . . . ,an∈R, withan6=0:

p(x) :=

n

X

i=0

aixi =a0+a1x+a2x2+. . .+an−1xn−1+anxn.

I A straightforward polynomial evaluation ofpfor a given parameterx0— i.e., the computation ofp(x0)— results inkmultiplications for a monomial of degreek, plus a total ofnadditions.

I Hence, we would get

0+1+2+. . .+n=n(n+1)

2 =O(n2) multiplications (andnadditions).

I Can we do better?

I Yes, we can: Horner’s Algorithm consumes onlynmultiplications andnadditions to evaluate a polynomial of degreen!

(13)

Motivation: Smoothness of a Curve

I What is a characteristic difference between the three curves shown below?

I Answer: The green curve has tangential discontinuities at the vertices, the blue curve consists of straight-line segments and circular arcs and is

tangent-continuous, while the red curve is a cubic B-spline and is curvature-continuous.

I By the way, when precisely is a geometric object a “curve”?

(14)

Motivation: Tangent to a Curve

I What is a parametrization of the tangent line at a pointγ(t0)of a curveγ?

γ γ(t0)

I Answer: Ifγis differentiable then a parametrization of the tangent line`that passes throughγ(t0)is given by

`(λ) =γ(t0) +λγ0(t0) withλ∈R. I How can we obtainγ0(t)forγ:R→Rd?

(15)

Motivation: Bézier Curve

I How can we model a “smooth” polynomial curve inR2by specifying so-called

“control points”. (E.g., the pointsp0,p1, . . . ,p10in the figure.)

p0

p1

p2

p3

p4 p5

p6 p7

p8

p9

p10

I One (widely used) option is to generate aBézier curve. (The figure shows a Bézier curve of degree 10 with 11 control points.)

I What is the degree of a Bézier curve? Which geometric and mathematical properties do Bézier curves exhibit?

(16)

Motivation: B-Spline Curve

I How can we model a (piecewise) polynomial curve inR2by specifying so-called

“control points” such that a modification of one control point affects only a “small”

portion of the curve?

I Answer: Use B-spline curves.

I Which geometric and mathematical properties do B-spline curves exhibit?

(17)

Motivation: NURBS

I Is it possible to parameterize a circular arc by means of a polynomial term? Or by a rational term?

I Yes, this is possible by means of a rational term:

1−t2 1+t2, 2t

1+t2

fort∈R.

I More generally, NURBS can be used to model all types of conics by means of rational parametrizations.

(18)

Motivation: Approximation of a Continuous Function I How can we approximate a continuous function by a polynomial?

I Answer: We can use a Bernstein approximation.

I SampleBernstein approximationsof acontinuous function:

f: [0,1]→R f(x) := sin (πx) +1 5sin

6πx+πx2

0.2 0.4 0.6 0.8 1.0

0.2 0.4 0.6 0.8 1.0

0.2 0.4 0.6 0.8 1.0

0.2 0.4 0.6 0.8 1.0

I One can prove that the Bernstein approximationBn,f converges uniformly tof on the interval[0,1]asnincreases, for every continuous functionf.

(19)

Notation: Numbers and Sets I Numbers:

I The set{1,2,3, . . .}of natural numbers is denoted byN, withN0:=N∪ {0}.

I The set{2,3,5,7,11,13, . . .} ⊂Nof prime numbers is denoted byP. I The (positive and negative) integers are denoted byZ.

I Zn:={0,1,2, . . . ,n−1}andZ+n :={1,2, . . . ,n−1}forn∈N.

I The reals are denoted byR; the non-negative reals are denoted byR+0, and the positive reals byR+.

I Open or closed intervalsI⊂Rare denoted using square brackets: e.g., I1= [a1,b1]orI2= [a2,b2[, witha1,a2,b1,b2∈R, where the right-hand “[”

indicates that the valueb2is not included inI2.

I The set of all elementsa∈Awith propertyP(a), for some setAand some predicateP, is denoted by

{x∈A: P(x)} or {x: x∈A∧ P(x)}

or

{x∈A|P(x)} or {x|x∈A ∧ P(x)}.

I Quantifiers: The universal quantifier is denoted by∀, and∃denotes the existential quantifier.

I Bold capital letters, such asM, are used for matrices.

I The set of all (real)m×nmatrices is denoted byMm×n.

(20)

Notation: Vectors

I Points are denoted by letters written in italics:p,qor, occasionally,P,Q. We do not distinguish between a point and its position vector.

I The coordinates of a vector are denoted by using indices (or numbers): e.g., v= (vx,vy)forv∈R2, orv= (v1,v2, . . . ,vn)forv∈Rn.

I In order to statev∈Rnin vector form we will mix column and row vectors freely unless a specific form is required, such as for matrix multiplication.

I The vector dot product of two vectorsv,w∈Rnis denoted byhv,wi. That is, hv,wi=Pn

i=1vi·wiforv,w∈Rn.

I The vector cross-product (inR3) is denoted by a cross:v×w.

I The length of a vectorvis denoted bykvk.

I The straight-line segment between the pointspandqis denoted bypq.

I The supporting line of the pointspandqis denoted by`(p,q).

(21)

Notation: Sum and Product

I Considerkreal numbersa1,a2, . . . ,ak ∈R, together with somem,n∈Nsuch that 1≤m,n≤k.

n

X

i=m

ai :=

0 if n<m

am if n=m

(Pn−1

i=mai) +an if n>m

n

Y

i=m

ai :=

1 if n<m

am if n=m

(Qn−1

i=mai)·an if n>m

(22)

Mathematics for Geometric Modeling Factorial and Binomial Coefficient Polynomials

Elementary Differential Calculus

Elementary Differential Geometry of Curves Elementary Differential Geometry of Surfaces

(23)

Factorial and Binomial Coefficient Definition 1(Factorial, Dt.: Fakultät, Faktorielle)

Forn∈N0, n! :=

1 if n≤1, n·(n−1)! if n>1.

I Note that 0! =1 by definition!

Definition 2(Binomial coefficient, Dt.: Binomialkoeffizient) Letn∈N0andk∈Z. Thebinomial coefficient nk

ofnandkis defined as follows:

n k

! :=













0 if k<0,

n!

k!·(n−k)! if 0≤k≤n,

0 if k>n.

I The binomial coefficient nk

is pronounced as “nchoosek”; Dt.: “nüberk”.

(24)

Factorial and Binomial Coefficient

Lemma 3

Letn∈N0andk∈Z. n

0

!

= n

n

!

=1 n

1

!

= n

n−1

!

=n n

k

!

= n

n−k

!

Theorem 4(Khayyam, Yang Hui, Tartaglia, Pascal) Forn∈Nandk∈Z,

n k

!

= n−1 k−1

!

+ n−1 k

! .

(25)

Factorial and Binomial Coefficient

Theorem 5(Binomial Theorem, Dt.: Binomischer Lehrsatz) For alln∈N0anda,b∈R,

(a+b)n= n 0

! an+ n

1

!

an−1b+· · ·+ n n

! bn

or, equivalently, (a+b)n=

n

X

i=0

n i

! an−ibi.

I In particular, for alla,b∈R,

(a+b)2=a2+2ab+b2 (a+b)3=a3+3a2b+3ab2+b3.

(26)

Polynomials

Definition 6(Monomial, Dt.: Monom)

A (real)monomial inmvariablesx1,x2, . . . ,xmis a product of a coefficientc∈R and powers of the variablesxiwith exponentski∈N0:

c

m

Y

i=1

xiki =c·x1k1·x2k2·. . .·xmkm. Thedegree of the monomialis given byPm

i=1ki. Definition 7(Polynomial, Dt.: Polynom)

A (real)polynomial inmvariablesx1,x2, . . . ,xmis a finite sum of monomials in x1,x2, . . . ,xm.

A polynomial isunivariateifm=1,bivariateifm=2, andmultivariateotherwise.

Definition 8(Degree, Dt.: Grad)

Thedegree of a polynomialis the maximum degree of its monomials.

(27)

Polynomials

I Hence, a univariate polynomial overRwith variablexis a term of the form anxn+an−1xn−1+· · ·+a1x+a0,

with coefficientsa0, . . . ,an∈Randan6=0.

I It is a convention to drop all monomials whose coefficients are zero.

I Univariate polynomials are usually written according to a decreasing order of exponents of their monomials.

I In that case, the first term is theleading termwhich indicates the degree of the polynomial; its coefficient is theleading coefficient.

I Univariate polynomials of degree 0. are called constant polynomials, 1. are called linear polynomials, 2. are called quadratic polynomials, 3. are called cubic polynomials, 4. are called quartic polynomials, 5. are called quintic polynomials.

(28)

Polynomial Arithmetic

I We define the addition of (univariate) polynomials based on the pairwise addition of corresponding coefficients:

n

X

i=0

aixi

! +

n

X

i=0

bixi

! :=

n

X

i=0

(ai+bi)xi

I The multiplication of polynomials is based on the multiplication withinR, distributivity, and the rules

ax=xa and xmxk =xm+k for alla∈Randm,k∈N:

n

X

i=0

aixi

!

·

m

X

j=0

bjxj

:=

n

X

i=0 m

X

j=0

(aibj)xi+j

I Elementary properties of polynomials: One can prove easily that the addition, multiplication and composition of two polynomials as well as their derivative and antiderivative (indefinite integral) again yield a polynomial.

I Same for multivariate polynomials.

(29)

Polynomial Arithmetic

I Instead ofRany commutative ring(R,+,·)and symbolsx,y, . . .that are not contained inRwould do. E.g.,

a2,3x2y3+a1,1xy+a0,1y+a0,0 witha2,3,a1,1,a0,1,a0,0∈R.

Lemma 9

The set of all polynomials with coefficients in the commutative ring(R,+,·)and a symbol (variable)x6∈Rforms a commutative ring, thering of polynomials over R, commonly denoted byR[x].

I Multivariate polynomials can also be seen as univariate polynomials with coefficients out of a ring of polynomials. E.g.,

a2,3x2y3+a1,1xy+a0,1y+a0,0= (a2,3x2)y3+ (a1,1x+a0,1)y+a0,0

is an element ofR[x,y] := (R[x])[y].

Definition 10

Two polynomials are equal if and only if the sequences of their coefficients (arranged in some specific order) are equal.

(30)

Polynomials: Vector Space

Theorem 11

The univariate polynomials ofR[x]form an infinitevector spaceoverR. The so-calledpower basisof this vector space is given by the monomials 1,x,x2,x3, . . ..

I The monomials 1,x,x2,x3, . . . ,xnform a basis of the vector space of polynomials of degree up tonoverR, for alln∈N0.

I Recall: The fact that the monomials 1,x,x2,x3, . . . ,xnform a basis of the polynomials of degree up tonoverRmeans that

1. every polynomialp∈R[x]of degree at mostncan be expressed as a linear combination of those monomials: there exista0,a1, . . . ,an∈Rsuch that

p=anxn+an−1xn−1+· · ·+a1x+a0,

2. none of those monomials can be expressed as a linear combination of the other monomials, i.e., the monomials are linearly independent.

I The power basis is not the only meaningful basis of the polynomialsR[x]. See, e.g., the Bernstein polynomials that are used to form Bézier curves.

(31)

Polynomials: Roots

Definition 12(Polynomial equation)

Apolynomial equation(akaalgebraic equation) is an equation in which a polynomial is set equal to another polynomial.

Definition 13(Root, Dt.: Wurzel)

The polynomialp∈R[x]has aroot (aka zero)r∈Rif(x−r)dividesp.

I Hence, ifr is a root ofpthenp= (x−r)·p1for somep1∈R[x].

Definition 14(Multiplicity, Dt.: Vielfachheit)

A rootr of a polynomialp∈R[x]is of multiplicitykifk∈Nis the maximum integer such that(x−r)kdividesp.

Theorem 15(Fundamental Theorem of Algebra)

The number of complex roots of a polynomial with real coefficients may not exceed its degree. It equals the degree if all roots are counted with their multiplicities.

(32)

Polynomials: Roots

I Recall the quadratic formula taught in secondary school for solving second-degree polynomial equations: Fora∈R\ {0}andb,c∈R,

x1,2:=−b±√

b2−4ac 2a

yields the two (possibly complex) rootsx1andx2ofax2+bx+c.

I Similar (albeit more complex) formulas exist for cubic and quartic polynomials.

Theorem 16(Abel-Ruffini (1824))

No algebraic solution for the roots of an arbitrary polynomial of degree five or higher exists.

I An algebraic solution is a closed-form expressions in terms of the coefficients of the polynomial that relies only on addition, subtraction, multiplication, division, raising to integer powers, and computingk-th roots (square roots, cube roots, and other integer roots).

I A closed-form expression is an expression that can be evaluated in a finite number of operations.

(33)

Polynomials: Roots

Lemma 17

Fora,b,c∈R, the rootsr1,r2of the quadratic polynomialax2+bx+csatisfy r1+r2=−b

a r1·r2= c a.

Lemma 18

Fora,b,c,d ∈R, the rootsr1,r2,r3of the cubic polynomialax3+bx2+cx+d satisfy

r1+r2+r3=−b

a r1·r2+r1·r3+r2·r3= c

a r1·r2·r3=−d a.

I These two lemmas are special cases of a general theorem by François Viète (Franciscus Vieta, 1540–1603).

(34)

Polynomials: Function

Definition 19(Polynomial function; Dt.: Polynomfunktion)

A (univariate real) functionf:I→R, for an intervalI⊆R, is apolynomial function overIif there existn∈N0anda0,a1, . . . ,an∈Rsuch that

f(x) =anxn+an−1xn−1+· · ·+a1x+a0 for allx∈I.

I As usual, two (polynomial) functions over an intervalI⊆Rare identical if their values are identical for all arguments inI.

I Note: Two different polynomials may result in the same polynomial function!

(E.g., over finite fields.)

I While some fields of mathematics (e.g., abstract algebra) make a clear distinction between polynomials and polynomial functions, we will freely mix these two terms. Also, unless noted explicitly, we will only deal with polynomials overR. I Note: Polynomial functions may come in disguise:f(x) := cos(2arccos(x))is a

polynomial function over[−1,1], since we havef(x) =2x2−1 for allx∈[−1,1].

(35)

Horner’s Algorithm for Evaluation of a Polynomial

I Consider a polynomialp∈R[x]of degreenwith coefficientsa0,a1, . . . ,an∈R, withan6=0:

p(x) :=

n

X

i=0

aixi =a0+a1x+a2x2+. . .+an−1xn−1+anxn.

I A straightforward polynomial evaluation ofpfor a given parameterx0results ink multiplications for a monomial of degreek, plus a total ofnadditions.

I Hence, we would get

0+1+2+. . .+n=n(n+1) 2 multiplications (andnadditions).

I Can we do better?

I Obviously, we can reduce the number of multiplications toO(nlogn)by resorting to exponentiation by squaring:

xn=

(x(x2)n−12 ifnis odd, (x2)n2 ifnis even.

I Can we do even better?

(36)

Horner’s Algorithm for Evaluation of a Polynomial

I Horner’s Algorithm: The idea is to rewrite the polynomial such that p(x) =a0+x

a1+x a2+. . .+x(an−2+x(an−1+x an)). . . and compute the resulth0:=p(x0)as follows:

hn:=an

hi:=x0·hi+1+ai fori=0,1,2, ...,n−1

1 /** Evaluates a polynomial of degree n at point x 2 * @param p: array of n+1 coefficients

3 * @param n: the degree of the polynomial 4 * @param x: the point of evaluation 5 * @return the evaluation result

6 */

7 double evaluate(double *p,int n,double x)

8 {

9 double h = p[n];

11 for (inti = n - 1; i >= 0; --i) 12 h = x * h + p[i];

14 return h;

15 }

(37)

Horner’s Algorithm for Evaluation of a Polynomial

Lemma 20

Horner’s Algorithm consumesnmultiplications andnadditions to evaluate a polynomial of degreen.

Caveat

Subtractive cancellation could occur at any time, and there is no easy way to determine a priori whether and for which data it will indeed occur.

I Subtractive cancellation: Subtracting two nearly equal numbers (on a

conventional IEEE-754 floating-point arithmetic) may yield a result with few or no meaningful digits. Aka: catastrophic cancellation.

(38)

Forward Differencing

I If a polynomial has to be evaluated fork+1 evenly spaced arguments

x0,x1, . . . ,xk, withxi+1=xi+δfor 0≤i<k, thenforward differencingis faster than Horner’s Algorithm.

I Consider a polynomial of degree one:

p(x) =a0+a1x

I The difference in the function valuesp(xi)andp(xi+1)of two neighboring points xiandxi+1is

∆ :=p(xi+1)−p(xi) =p(xi+δ)−p(xi) =a0+a1(xi+δ)−(a0+a1xi) =a1δ.

I Hence, to evaluate the polynomial for several arguments, we may start with the evaluation ofp(x0)and recursively compute

p(xi+1) =p(xi+δ) =p(xi) + ∆, with∆ :=a1δ.

(39)

Forward Differencing

I For a quadratic polynomialp(x) =a0+a1x+a2x2the difference of the function values of neighboring arguments is

1(xi) :=p(xi+1)−p(xi) =p(xi+δ)−p(xi)

=a0+a1(xi+δ) +a2(xi+δ)2−(a0+a1xi+a2xi2)

=a1δ+a2δ2+2a2xiδ

I As∆1(x)is itself a linear polynomial, it can also be evaluated using forward differencing:

2(x) := ∆1(x+δ)−∆1(x) =2a2δ2

I This approach can be extended to polynomials of any degree.

I One can conclude that for a polynomial of degreeneach successive evaluation requiresnadditions.

(40)

Differentiation of Functions of One Variable Definition 21(Derivative, Dt.: Ableitung)

LetS⊆Rbe an open set. A (scalar-valued) functionf:S→Risdifferentiableat an interior pointx0∈Sif

h→0lim

f(x0+h)−f(x0) h

exists, in which case the limit is called thederivativeoff atx0, denoted byf0(x0).

Definition 22

LetS⊆Rbe an open set. A (scalar-valued) functionf:S→Risdifferentiable on Sif it is differentiable at every point ofS.

Iffis differentiable onSandf0is continuous onSthenf iscontinuously differentiable on S. In this casefis said to be ofdifferentiability class C1. I By taking one-sided limits one can also consider one-sided derivatives on the

boundary of closed setsS.

I By applying differentiation tof0, a second derivativef00offcan be defined.

Inductively, we obtainf(n)by differentiatingf(n−1).

(41)

Differentiation of Functions of One Variable Definition 23(Ck, Dt.:k-mal stetig differenzierbar)

LetS⊆Rbe an open set. A functionf:S→Rthat hasksuccessive derivatives is calledk times differentiable. If, in addition, thek-th derivative is continuous, then the function is said to be ofdifferentiability class Ck.

I If thek-th derivative off exists then the continuity off(0),f(1), . . . ,f(k−1)is implied.

Definition 24(Smooth, Dt.: glatt)

LetS⊆Rbe an open set. A functionf:S→Ris calledsmoothif it has infinitely many derivatives, denoted by the classC.

I We haveC⊂Ci ⊂Cj, for alli,j∈N0ifi>j.

I Notation:

I f(0)(x) :=f(x)for convenience purposes.

I f0(x)=f(1)(x) = dxdf(x) =dxdf(x).

I f00(x)=f(2)(x) = d2

dx2f(x) = d2f

dx2(x).

I f000(x)=f(3)(x) =dxd33f(x) = ddx33f(x).

I f(n)(x)=dxdnnf(x) = ddxnnf(x).

(42)

Differentiation of Functions of One Variable

Definition 25

Forn∈Nconsidernfunctionsfi:S→R(with 1≤i≤n) and definef:S→Rnas

f(x) :=

 f1(x) f2(x) ... fn(x)

 .

Then the (vector-valued) functionfisdifferentiableat an interior pointx0∈Sif and only iffiis differentiable atx0, for alli∈ {1,2, . . . ,n}. The derivative offatx0is given by

f0(x0) :=

 f10(x0) f20(x0)

... fn0(x0)

 .

I All other definitions related to differentiability carry over from scalar-valued functions to vector-valued functions of one variable in a natural way.

(43)

Differentiation of Functions of Several Variables Definition 26(Partial derivative, Dt.: partielle Ableitung)

LetS⊆Rmbe an open set. Thepartial derivativeof a (vector-valued) function f:S→Rnat point(a1,a2, . . . ,am)∈Swith respect to thei-th coordinatexi is defined as

∂f

∂xi

(a1,a2, . . . ,am) := lim

h→0

f(a1,a2, . . . ,ai+h, . . . ,am)−f(a1,a2, . . . ,ai, . . . ,am)

h ,

if this limit exists.

I Hence, for a partial derivative with respect toxiwe simply differentiatef with respect toxiaccording to the rules for ordinary differentiation, while regarding all other variables as constants.

I That is, for the purpose of the partial derivative with respect toxiwe regardf as univariate function inxiand apply standard differentiation rules.

I Some authors prefer to writefx instead of ∂x∂f. I We will mix notations as we find it convenient.

Note

A function ofmvariables may have all first-order partial derivatives at a point (a1, . . . ,am)but still need not be continuous at(a1, . . . ,am).

(44)

Differentiation of Functions of Several Variables

I Higher-order partial derivatives offare obtained by repeated computation of a partial derivative of a (higher-order) partial derivative off.

I Does it matter in which sequence we compute higher-order partial derivatives?

Theorem 27

Suppose that ∂x∂f,∂y∂f,∂y2∂xf exist on a neighborhood of(x0,y0), and that∂y∂x2f is continuous at(x0,y0). Then ∂x∂y2f (x0,y0)exists, and we have

2f

∂x∂y(x0,y0) = ∂2f

∂y∂x(x0,y0).

I Note the difference between the Leibniz notation and the subscript notation for higher-order mixed partial derivatives!

2f

∂x∂y(x,y) := ∂

∂x(∂f

∂y)(x,y) but fxy(x,y) := (fx)y(x,y) I Also, note that Theorem 27 does not imply that it could not be simpler to

compute, say, ∂y2∂xf rather than∂x∂y2f : f(x,y) :=xe2y+

q

eysin(ytan(logy)) +p

1+y2cos2y

(45)

Differentiation of Functions of Several Variables Definition 28(Differentiable, Dt.: total differenzierbar)

LetS⊆Rmbe an open set. A functionf:S→Rnofmvariables isdifferentiableat a pointa:= (a1, . . . ,am)∈Sif there exists ann×mmatrixJsuch that

xlim→a

f(x)−f(a)−J(x−a) kx−ak =0.

Theorem 29

LetS⊆Rmbe an open set. If a functionf:S→Rnofmvariables is differentiable at a pointa∈Sthen the coefficientsaij of the matrixJof Def. 28 are given by

aij= ∂fi

∂xj

(a) fori∈ {1,2, . . . ,n}andj∈ {1,2, . . . ,m}.

The matrixJis calledJacobi matrixoffata.

(46)

Differentiation of Functions of Several Variables

Theorem 30

If a functionf:S→Rnofmvariables is differentiable at a pointa∈Sthen it is continuous ata.

Theorem 31 If ∂x∂f

1,∂x∂f

2, . . . ,∂x∂f

m exist for a functionf:S→Rnofmvariables on a neighborhood of a pointa∈Sand are continuous atathenfis differentiable ata.

Definition 32(Continuously differentiable, Dt.: stetig differenzierbar)

We say that a functionf:S→Rnofmvariables iscontinuously differentiableon an open subsetSofRmif∂x∂f

1,∂x∂f

2, . . . ,∂x∂f

m exist and are continuous onS.

(47)

Curves

I Intuitively, a curve inR2is generated by a continuous motion of a pencil on a sheet of paper.

I A formal mathematical definition is not entirely straightforward, and the term

“curve” is associated with two closely related notions: kinematic and geometric.

I In the kinematic setting, a (parameterized) curve is a function of one real variable.

I In the geometric setting, a curve, also called an arc, is a 1-dimensional subset of space that is “similar” to a line (albeit it need not be straight).

I Both notions are related:

I The image of a parameterized curve describes an arc.

I Conversely, an arc admits a parametrization.

I Since the kinematic setting is easier to introduce, we resort to a kinematic definition of “curve”.

I Note that fairly counter-intuitive curves exist: e.g., space-filling curves like the Sierpinski curve.

(48)

Caveat: Sierpinski Curves

I Sierpinski curves are a sequence of recursively defined continuous and closed curves inR2.

I Sierpinski curve of orders 1–3 :

I Their limit curve,the Sierpinski curve, is a space-filling curve: It fills the unit square completely! It is a continuous and surjective (but not injective!) mapping of[0,1]onto[0,1]×[0,1].

I The Euclidean lengthLnof the order-nSierpinski curve is Ln= 2

3(1+√

2)2n−1 3(2−√

2)1 2n.

Hence, its length grows exponentially and unboundedly asngrows.

(49)

Curves inRn

Definition 33(Curve, Dt.: Kurve)

LetI⊆Rbe an interval of the real line. A continuous (vector-valued) mapping γ:I→Rnis called aparametrizationofγ(I)or aparametric curve.

I Well-known examples of parameterized curves include a straight-line segment, a circular arc, and a helix.

I E.g.,γ: [0,1]→R3with γ(t) :=

px+t·(qx−px) py+t·(qy−py) pz+t·(qz−pz)

maps[0,1]to a straight-line segment from pointptoq.

I The intervalIis called thedomainofγ, andγ(I)is calledimage(Dt.: Bild, Spur).

Definition 34(Plane curve, Dt.: ebene Kurve)

Forγ:I→Rn, the curveγ(I)isplaneifγ(I)⊆R2or ifγ(I)lies within an

affine/projective plane. A non-plane curve is called askew curve(Dt.: Raumkurve).

I Analgebraic plane curveis the zero set of a polynomial in two variables.

(50)

Curves inRn

Definition 35(Start and end point)

IfIis a closed interval[a,b], for somea,b∈R, then we callγ(a)thestart pointand γ(b)theend point of the curveγ:I→Rn.

Definition 36(Closed, Dt.: geschlossen)

A parametrizationγ:I→Rnis said to beclosed(or aloop) ifIis a closed interval [a,b], for somea,b∈R, andγ(a) =γ(b).

Definition 37(Simple, Dt.: einfach)

A parametrizationγ:I→Rnis said to besimpleifγ(t1) =γ(t2)fort16=t2∈I implies{t1,t2}={a,b}andI= [a,b], for somea,b∈R.

I Hence, ifγ:I→Rnis simple then it is injective onint(I).

(51)

Curves inRn

I Many properties of curves can also be stated independently of a specific parametrization. E.g., we can regard a curveCto be simple if there exists one parametrization ofCthat is simple.

I In daily math, the standard meaning of a “curve” is the image of the equivalence class of all paths under a certain equivalence relation. (Roughly, two paths are equivalent if they are identical up to re-parametrization.)

I Hence, the distinction between a curve and (one of) its parametrizations is often blurred.

I For the sake of simplicity, we will not distinguish between a curveCand one of its parametrizationsγif the meaning is clear.

I Similarly, we will frequently callγa curve.

I For instance, we will frequently speak about a closed curve rather than about a closed parametrization of a curve.

(52)

Jordan Curve inR2 Definition 38(Jordan curve)

A setC ⊂R2(which is not a single point) is called aJordan curveif there exists a simple and closed parametrizationγ:I→R2that parameterizesC.

Theorem 39(Jordan 1887)

Every Jordan curveCpartitionsR2\ Cinto two disjoint open regions, a (bounded)

“interior” region and an (unbounded) “exterior” region, withCas the (topological) boundary of both of them.

I Although this theorem — the so-called Jordan Curve Theorem (Dt.: Jordanscher Kurvensatz) — seems obvious, a proof is not entirely trivial.

Theorem 40(Schönflies 1906)

For every Jordan curveCthere exists a homeomorphism from the plane to itself that mapsCto the unit sphereS1.

I Roughly, a homeomorphism is a bijective continuous stretching and bending of one space into another space such that the inverse function also is continuous.

(53)

Differentiable Curves

Definition 41(Cr-parametrization)

Ifγ:I→Rnisr times continuously differentiable thenγis called a parametric curve of classCr, or aCr-parametrizationofγ(I), or simply aCr-curve.

IfI= [a,b], thenγis called aclosed Cr-parametrizationifγ(k)(a) =γ(k)(b)for all 0≤k≤r.

I One-sided differentiability is meant at the endpoints ofIifIis a closed interval.

Definition 42(Smooth curve, Dt.: glatte Kurve)

Ifγ:I→Rnhas derivatives of all orders thenγis (the parametrization of) asmooth curve(or of classC).

Definition 43(Piecewise smooth curve, Dt.: stückweise glatte Kurve)

IfIis the union of a finite number of sub-intervals over each of whichγ:I→Rnis smooth thenγispiecewise smooth.

I Note: Smoothness depends on the parametrization!

I There do exist curves which are continuous everywhere but differentiable nowhere [Weierstrass 1872, Koch 1904].

(54)

Differentiable Curves

Definition 44(Regular, Dt.: regulär)

ACr-curveγ:I→Rnis calledregular of order k, for some 0<k≤r, if the vectors {γ0(t), γ00(t), . . . , γ(k)(t)}are linearly independent for everyt∈I.

In particular,γis calledregularifγ0(t)6=0∈Rnfor everyt∈I.

Definition 45(Singular, Dt.: singulär)

For aC1-curveγ:I→Rnandt0∈I, the pointγ(t0)is called asingular pointofγif γ0(t0) =0.

I Note: Regularity and singularity depend on the parametrization!

(55)

Equivalence of Parametrizations inRn

I Note that parametrizations of a curve (regarded as a setC ⊂Rn) need not be unique: Two different parametrizationsγ:I→Rnandβ:J→Rnmay exist such thatC=γ(I) =β(J).

γ(t):=

cos2πt sin2πt

x y

Figure:γ(t)fort[0,0.9]

β(t):=

cos2πt

−sin2πt

x y

Figure:β(t)fort[0,0.9]

(56)

Equivalence of Parametrizations inRn

Definition 46(Reparametrization, Dt.: Umparameterisierung)

Letγ:I→Rnandβ:J→Rnboth beCr-curves, for somer∈N0. We considerγ andβasequivalentif a functionφ:I→Jexists, such that

β(φ(t)) =γ(t) ∀t∈I,

and

1. φis continuous, strictly monotonously increasing and bijective, 2. bothφandφ−1arer times continuously differentiable.

In this case the parametric curveβis called areparametrizationofγ.

γ

β φ

I J

γ(I) =β(J)

t

Caveat

There is no universally accepted definition of a reparametrization! Some authors drop the monotonicity or the differentiability ofφ, while others even requireφto be smooth.

(57)

Arc Length

Definition 47(Decomposition, Dt.: Unterteilung)

Considerγ:I→Rn, withI:= [a,b]. Adecomposition,P, of the closed intervalIis a sequence ofm+1 numberst0,t1,t2, . . . ,tm, for somem∈N, such that

a=t0<t1<t2<· · ·<tm=b.

The lengthLP(γ)of the polygonal chain(γ(t0), γ(t1), γ(t2), . . . , γ(tm))that corresponds to the decompositiont0,t1,t2, . . . ,tm is given by

LP(γ) :=

m−1

X

j=0

kγ(tj+1)−γ(tj)k

=kγ(t1)−γ(t0)k+kγ(t2)−γ(t1)k+· · ·+kγ(tm)−γ(tm−1)k.

We denote the set of all decompositions of[a,b]byP[a,b].

(58)

Arc Length

Definition 48(Arc length, Dt.: Bogenlänge)

Considerγ:I→Rn, withI:= [a,b]. Thearc lengthofγ(I)is given by sup{LP(γ) :P∈ P[a,b]},

i.e., by the supremum (over all decompositionst0,t1,t2, . . . ,tm ofI) of the length of the polygonal chain defined byγ(t0), γ(t1), γ(t2), . . . , γ(tm).

Definition 49(Rectifiable, Dt.: rektifizierbar)

If the arc length ofγ:I→Rnis a finite number thenγ(I)is calledrectifiable.

Lemma 50

The arc length of a curve does not change for equivalent parametrizations.

Sketch of Proof : Suppose thatγ(t) =β(φ(t))for allt∈I, forβ:J→Rn. Every decompositiont0,t1,t2, . . . ,tm ofImaps to a decompositionφ(t0),φ(t1),φ(t2), . . . , φ(tm) ofJsuch thatγ(ti) =β(φ(ti))for all 1≤i≤m. Hence, there is a bijection from the set of decompositions ofIto the set of decompositions ofJ, and it does not matter which set is used for determining the supremum of all possible chain lengths.

(59)

Arc Length: Non-Rectifiable Curve

I Curves exist that are non-rectifiable, i.e., for which there is no upper bound on the length of their polygonal approximations.

I Example of a non-rectifiable curve: The graph of the function defined byf(0) :=0 andf(x) :=xsin 1x

for 0<x≤a, for somea∈R+. It defines a curve γ(t) :=

t

f(t)

.

0.5 1.0 1.5 2.0

-1.0 -0.5 0.5 1.0

The graph off(x) :=xsin 1x

forx∈[0,2]

(60)

Arc Length: Non-Rectifiable Curve

I Curves exist that are non-rectifiable, i.e., for which there is no upper bound on the length of their polygonal approximations.

I Example of a non-rectifiable curve: The graph of the function defined byf(0) :=0 andf(x) :=xsin 1x

for 0<x≤a, for somea∈R+. It defines a curve γ(t) :=

t

f(t)

.

0.1 0.2 0.3 0.4 0.5

-0.2 -0.1 0.1 0.2

The graph off(x) :=xsin x1

forx∈[0,12]

(61)

Arc Length: Non-Rectifiable Curve

I Curves exist that are non-rectifiable, i.e., for which there is no upper bound on the length of their polygonal approximations.

I Example of a non-rectifiable curve: The graph of the function defined byf(0) :=0 andf(x) :=xsin 1x

for 0<x≤a, for somea∈R+. It defines a curve γ(t) :=

t

f(t)

.

0.005 0.010 0.015

-0.006 -0.004 -0.002 0.002 0.004 0.006

The graph off(x) :=xsin 1x

forx∈[0,321]

(62)

Arc Length: Non-Rectifiable Curve

I Example of a non-rectifiable closed curve: TheKoch snowflake[Koch 1904].

Koch snowflake, iteration 2

I The length of the curve after then-th iteration is(4/3)ntimes the original triangle perimeter. (Its fractal dimension islog4/log3≈1.261.)

(63)

Arc Length

Lemma 51

Ifγ:I→Rnis aC1-curve thenγ(I)is rectifiable.

Theorem 52

Letγ:I→Rnbe aC1curve, withI:= [a,b]. Then the arc length ofγ(I)is given by Z b

a

γ0(t) dt.

Corollary 53

Letγ:I→Rnbe aC1curve, and[a,b]⊆I. Then the arc length ofγ([a,b])is given by

Z b a

γ0(t) dt.

(64)

Arc Length: Unit Speed

Definition 54(Speed, Dt.: Geschwindigkeit)

Ifγ:I→Rnis aC1-curve then the vectorγ0(t)is thevelocity vectorat parametert, andkγ0(t)kgives thespeedat parametert, for allt∈I.

Definition 55(Natural parametrization)

AC1-curveγ:I→Rnis callednatural(or atunit speed) ifkγ0(t)k=1 for allt∈I.

Theorem 56

Ifγ:I→Rn, withI:= [a,b], is a regular curve then there exists an equivalent reparametrizationγ˜that has unit speed.

(65)

Tangent Vector

γ

γ(t0) γ(t1)

I Ifγ(t0)is a fixed point on the curveγ, andγ(t1), witht1>t0, is another point, then the vector fromγ(t0)toγ(t1)approaches thetangent vectortoγatγ(t0)as the distance betweent1andt0is decreased.

I The infinite line throughγ(t0)that is parallel to this vector is known as thetangent lineto the curveγat pointγ(t0).

I If we disregard the orientation of the tangent vector then we would like to obtain the same result for the tangent line by considering a pointγ(t1)witht1<t0.

(66)

Tangent Vector

Definition 57(Tangent vector)

Letγ:I→Rnbe aC1-curve. Ifγ0(t)6=0 fort∈Ithenγ0(t)forms thetangent vectorat the pointγ(t)ofγ.

I The tangent vector indicates the forward direction ofγrelative to increasing parameter values.

I Ifγis at unit speed thenγ0(t)forms a unit vector.

I A parametrization of the tangent line`that passes throughγ(t)is given by

`(λ) =γ(t) +λγ0(t) withλ∈R. I If

γ(t) = x(t)

y(t)

is a curve inR2then the vector −y0(t)

x0(t)

is normal on the tangent line atγ(t).

(67)

Frenet Frame for Curves inR3

Definition 58(Frenet frame, Dt.: begleitendes Dreibein)

Letγ:I→R3be aC2curve that is regular of order two. Then theFrenet frame (akamoving trihedron) atγ(t)is defined as an orthonormal basis of vectors T(t),N(t),B(t)as follows:

T(t) := γ00(t)(t)k unit tangent;

N(t) :=kTT00(t(t))k unit (principal) normal;

B(t) :=T(t)×N(t) unit binormal.

Lemma 59

Letγ:I→R3be aC2curve that is regular of order two, and defineT,N,Bas in Def. 58. We get for allt∈I:

I N(t)is normal toT(t), and I B(t)is a unit vector.

(68)

Osculating Plane for a Curve inR3

I Letγ(t0)be a fixed point onγ, and two other pointsγ(t1)andγ(t2)that move alongγ.

I Obviously,γ(t0),γ(t1)andγ(t2)define a plane.

I As bothγ(t1)andγ(t2)approachγ(t0), the plane determined by them approaches a limiting position.

I This limiting plane is known as theosculating planeto the curveγat pointγ(t0).

Definition 60(Osculating plane, Dt.: Schmiegeebene)

Letγ:I→R3be aC2curve that is regular of order two. Theosculating planeat the pointγ(t)is the plane spanned byT(t)andN(t), as defined in Def. 58.

I Of course, the osculating plane contains the tangent line toγatγ(t0).

I The osculating plane at the pointγ(t0)contains alsoγ00(t0).

I Thus, the binormal is the normal vector of the osculating plane.

(69)

Curvature of Curves inR3

I The curvature at a given point of a curve (inR3) is a measure of how quickly the curve changes direction at that point relative to the speed of the curve.

Definition 61(Curvature, Dt.: Krümmung)

Letγ:I→R3be aC2curve that is regular. Thecurvatureκ(t)ofγat the pointγ(t) is defined as

κ(t) :=kγ0(t)×γ00(t)k kγ0(t)k3 .

Definition 62(Radius of curvature, Dt.: Krümmungsradius)

Letγ:I→R3be aC2curve that is regular. Ifκ(t)>0 then theradius of curvature ρ(t)at the pointγ(t)is defined as

ρ(t) := 1

κ(t).

(70)

Curvature of Curves inR3 I Consider the circle that

1. passes throughγ(t0),

2. touches the tangent atγ(t0), and that 3. passes through another pointγ(t1).

I Now imagine that the difference betweent1andt0is decreased.

I In the limit, fort1=t0, we get the so-calledcircle of curvature.

I One can prove that

I the circle of curvature (aka “osculating circle”) lies in the osculating plane of γ(t0),

I its radius, the radius of curvature, is given byρ(t0), and that

I its center lies on the ray with direction vectorN(t0)that starts atγ(t0).

(71)

Curvature of Curves inR3: Inflection Definition 63(Point of inflection, Dt.: Wendepunkt)

Letγ:I→R3be aC2-curve that is regular. If for allt∈Ithe second derivativeγ00 does not vanish, i.e., ifγ00(t)6=0, then a pointγ(t)for whichκ(t) =0 holds is called apoint of inflectionofγ.

Lemma 64

Letγ:I→R3be aC2-curve that is regular such that for allt∈Ithe second derivativeγ00does not vanish. Thenγ(t)is a point of inflection ofγif and only if γ0(t)andγ00(t)are collinear.

I Hence, at a point of inflection the radius of curvature is infinite and the circle of curvature degenerates to the tangent.

(72)

Curvature of Curves inR3

Lemma 65

Letγ:I→R3be aC3-curve at unit speed that is regular of order two. Then the following simplified formula holds:

κ(t) =

γ00(t)

Sketch of Proof : Recall that, in general, κ(t) =kγ0(t)×γ00(t)k

0(t)k3 .

(73)

Curvature of Curves inR2

Lemma 66

Letγ:I→R2be aC2-curve that is regular, withγ(t) = (x(t),y(t)). Thenκ(t)ofγ at the pointγ(t)is given as

κ(t) =|x0(t)y00(t)−x00(t)y0(t)|

((x0(t))2+ (y0(t))2)3/2 .

Sketch of Proof : Recall that, in general, κ(t) =kγ0(t)×γ00(t)k

0(t)k3 .

Corollary 67

Letγ:I→R2be aC2-curve that is regular, withγ(t) = (t,y(t)). Thenκ(t)ofγat the pointγ(t)is given as

κ(t) = |y00(t)|

((1+ (y0(t))2)3/2.

(74)

Parametric Continuity of a Curve

I Consider two curvesβ: [a,b]→Rnandγ: [c,d]→Rn. I Suppose thatβ(b) =γ(c) =:p.

I We are interested in checking how “smoothly”βandγjoin at the jointp.

p

β γ

Definition 68(Ck-continuous at joint, Dt.:Ck-stetiger Übergang) Letβ: [a,b]→Rnandγ: [c,d]→RnbeCk-curves. If

β(i)(b) =γ(i)(c) for alli∈ {0, . . . ,k}

thenβandγareCk-continuous at joint p:=β(b).

I Of course, one-sided derivatives are to be considered in Def. 68.

(75)

Parametric Continuity of a Curve

I C0-continuity implies that the end point of one curve is the start point of the second curve, i.e., they share a commonjoint.

I C1-continuity implies that the speed does not change atp.

I C2-continuity implies that the acceleration does not change atp.

I Parametric continuity is important for animations: If an object moves alongβwith constant parametric speed, then there should be no sudden jump once it moves alongγ.

Definition 69(Curvature continuous, Dt.: krümmungsstetig)

Letβ: [a,b]→R3andγ: [c,d]→R3beC2-curves, withβ(b) =γ(c) =:p. If the curvatures ofβandγare equal atpthenβandγare said to becurvature continuousatp.

Caveat

C1-continuity plus curvature continuity need not implyC2-continuity!

I Unfortunately, this important fact is missed frequently, and curvature continuity is often (wrongly) taken as a synonym forC2-continuity. . .

(76)

Problems with Parametric Continuity

I Note that parametric continuity depends on the particular parametrizations ofβ andγ.

I Consider three collinear pointsp,q, andr which define two straight-line segments joined at their common endpointq:

β(t) :=p+t(q−p), t∈[0,1]

γ(t) :=q+ (t−1)(r−q), t∈[1,2]

p q r

β γ

I Of course,βandγareC0-continuous atq.

I However,β0(1) =q−pwhileγ0(1) =r−q. Thus, in general,βandγwill not be C1-continuous atq.

I C1-continuity atqcould be achieved by resorting to arc-length parametrizations forβandγ:

β(t) :=p+ t

kq−pk(q−p), t∈[0,kq−pk]

γ(t) :=q+t− kq−pk

kr−qk (r−q), t∈[kq−pk,kq−pk+kr−qk]

Referenzen

ÄHNLICHE DOKUMENTE