75
Preliminary Mathematics of Geometric Modeling (2) Hongxin Zhang and Jieqing Feng State Key Lab of CAD&CG Zhejiang University

Mathematical Foundation of Geometric Modeling

Embed Size (px)

Citation preview

Page 1: Mathematical Foundation of Geometric Modeling

Preliminary Mathematics of Geometric Modeling (2)

Hongxin Zhang and Jieqing FengState Key Lab of CAD&CG

Zhejiang University

Page 2: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG2

Contents

• Representation of Curves and Surfaces• Differential Geometry of Curves

Page 3: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG3

Representation of Curves and Surfaces

• Planar Curves (2D)• Space Curves (3D)• Surfaces• Summary

Page 4: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG4

Representation of Planar Curves

• Parametric Form

where

x(t) and y(t) are assumed to be continuous with a sufficient number of continuous derivatives

Page 5: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG5

Representation of Planar Curves

• Vector-Valued Parametric Form

Page 6: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG6

• Implicit Form

Linear (line): f(x,y) = ax+by+c =0

Quadric (Conic sections):

Representation of Planar Curves

Page 7: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG7

Representation of Planar Curves

• Explicit Form

A special case of parametric and implicit forms

Page 8: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG8

Representation of Planar Curves

Special parametric form if

is satisfied at least locally.

Special implicit form if

is satisfied at least locally.

Page 9: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG9

Representation of Planar Curves

• A planar curve can also be expressed as an intersection curve between a plane and a surface

Page 10: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG10

Example of Planar Curves

• Folium of Descartes

Cubic curve with a single loop, a node, and two ends asymptotic to the same line

Parametric form

Implicit form

Page 11: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG11

Representation of Space Curves

• The parametric representation of space curves

where

Page 12: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG12

Representation of Space Curves

• The implicit representation of space curves

intersection curve between two implicit surfaces

intersection curve between parametric and implicit surfaces

Page 13: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG13

Representation of Space Curves

• The implicit representation of space curves

intersection curve between two parametric surfaces

Page 14: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG14

Representation of Space Curves

• The explicit representation of space curves

It is hold at least locally when

Parametric form:

Implicit form:

Page 15: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG15

Representation of Space Curves

• The explicit representation of space curves

The explicit equation for the space curve can be expressed as an intersection curve of two cylinders projecting the curve onto xy and xz planes.

Page 16: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG16

Representation of Surfaces

• Parametric Form

where

Note: the functions x(u,v), y(u,v) and z(u,v)are continuous and possess a sufficient number of continuous partial derivatives

Page 17: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG17

Representation of Surfaces

• Parametric form as vector-valued function

Page 18: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG18

Representation of Surfaces

• Implicit form: an implicit surface is defined as the locus of points whose coordinates (x,y,z)satisfy an equation of the form

f(x,y,z) is linear: planef(x,y,z) is quadratic in the variables x,y,z: quadratic surface

Page 19: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG19

Representation of Surfaces

• Quadratic surfaces:The natural quadrics, sphere, circular cone and circular cylinder: widely used in mechanical design and CAD/CAM systemsResult from standard manufacturing operations: rolling, turning(+), filleting(-),drilling and milling 80-85% of mechanical parts were adequately represented by planes and cylinders, while 90-95% were modeled with the addition of cones. (Univ. of Rochester , in the mid 1970's)

Page 20: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG20

Representation of Surfaces

hyperbolic paraboloid elliptic paraboloid

paraboloid of revolution parabolic cylinder

Page 21: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG21

Representation of Surfaces

• Explicit Form

From implicit form: locally

From parametric form: locally

z=F(x,y) : x=u, y=v, z=f(u,v)explicit form is special case of parametric form.

Page 22: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG22

Representation of Surfaces

• Example: hyperbolic paraboloid surface patch

parametric form:

explicit form: u=(x+y)/2, v=(x-y)/2

Page 23: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG23

Summary

Representations of curves and surfaces

Page 24: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG24

Summary

Page 25: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG25

Summary

• The parametric form is the most versatile method among the three and the explicit is the least

• The explicit form can always be easily converted to parametric form

• Conversion between parametric form and implicit form

Page 26: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG26

Differential Geometry of Curves

• Arc length and tangent vector • Principal normal and curvature • Binormal vector and torsion• Frenet-Serret formulae

Page 27: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG27

Arc length and tangent vector

Parametric curve r=r(t)Segment between PQ

P(r(t)) Q(r(t+∆t))Its arc length ∆s

Page 28: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG28

• Arc length between r(t0) and r(t)

• Tangent vector dr/dt : derivative about t

is called parametric speed

Arc length and tangent vector

Page 29: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG29

Arc length and tangent vector

• Useful formulae of the derivatives ( s / t )

Page 30: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG30

Arc length and tangent vector

• Derivative about arc length: r′

It is a unit vector

Page 31: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG31

Arc length and tangent vector

• Definition: A regular (ordinary) point P on a parametric curve r=r(t)=(x(t),y(t),z(t))T is defined as a point where . A point which is not a regular point is called a singular point.

Page 32: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG32

Arc length and tangent vector

• Parameter t and Arc length parameter st: arbitrary speed

s: unit speed

When parametric speed does not vary significantly, points with uniformly spaced parameter values are nearly uniformly spaced along a parametric curve

Page 33: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG33

Arc length and tangent vector

• Parameter t and Arc length parameter sEvery regular curve has an arc length parametrization In practice it is very difficult to find it analytically, due to the fact that it is hard to integrate analyticallyPythagorean hodograph (PH) curves form a class of special planar polynomial curves whose parametric speed is a polynomial

Page 34: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG34

Arc length and tangent vector

• Tangent vector of implicit planar curvef (x,y)=0 total differentiation

df = fx dx+fy dy =0

by assuming fy≠0

Unit tangent vector :

Page 35: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG35

Arc length and tangent vector

• Tangent vector of implicit space curve

Curve: f (x,y,z)=0∩g (x,y,z)=0

Gradient vector operator:

Unit tangent vector :

Page 36: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG36

Arc length and tangent vector

• Example

Parametric speedr(0) is a singular point

Implicit form:(0,0) is a singular point since

Page 37: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG37

Arc length and tangent vector

A singular point occurs on a semi-cubical parabola in the form of a cusp

Page 38: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG38

Principal normal and curvature

• r(s): an arc length parametrized curver′(s) unit tangent vector

r″(s) is orthogonal to r′(s)

Page 39: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG39

Principal normal and curvature

Derivation of the normal vector of a curve

n: unit principal normal vector

The plane determined by t(s)and n(s) is called osculating plane

Page 40: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG40

Principal normal and curvature

Page 41: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG41

• Calculation of

: radius of curvatureκ : curvature

Principal normal and curvature

Page 42: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG42

Principal normal and curvature

• Curvature vector

measures the rate of change of the tangent along the curveIt is the same as r″ (s) provided defining κ is nonnegative

Page 43: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG43

Principal normal and curvature

• Curvature for arbitrary speed curve (non-arc-length parametrized)

Page 44: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG44

Principal normal and curvature

• Curvature for the planar curveGive the curvature κ a sign by defining the normal vector such that (t,n,ez) form a right-handed screw

ez=(0,0,1)T

The point where the curvature changes sign is called an inflection point

Page 45: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG45

Principal normal and curvature

Normal and tangent vectors along a 2D curve

Page 46: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG46

Principal normal and curvature

• The unit normal vector of the plane curve

• The curvature of the plane curve

Page 47: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG47

Principal normal and curvature

• The unit principal normal vector for planar implicit curves (2D)Unit tangent vector

Unit principal normal vector

Page 48: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG48

Principal normal and curvature

• The curvature for planar implicit curves

,Tdx dy

ds ds⎛ ⎞ =⎜ ⎟⎝ ⎠

Page 49: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG49

Principal normal and curvature

• The curvature for planar implicit curves

,Tdx dy

ds ds⎛ ⎞ =⎜ ⎟⎝ ⎠

Page 50: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG50

Principal normal and curvature

• The curvature for space implicit curves

where

Page 51: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG51

Principal normal and curvature

Page 52: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG52

Principal normal and curvature

Cross product with

Thus

Page 53: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG53

Binormal vector and torsion

• Define a unit binormal vector b

• (t,n,b) form a right-handed screw

Normal plane: (n,b)

Rectifying plane: (b,t)

Osculating plane: (t,n)

Binomal for arbitrary speed parameter t

Page 54: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG54

Binormal vector and torsion

Page 55: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG55

Binormal vector and torsion

• Torsion: measures how much the curve deviates from the osculating plane

n′ is parallel to the rectifying plane (b,t)

Page 56: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG56

Binormal vector and torsion

• Torsion for arc length parameter

• Torsion for arbitrary speed parameter

Page 57: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG57

Binormal vector and torsion

• Geometric interpretation of torsionτ > 0 : the rotation of the osculating plane is in the direction of a right-handed screw moving in the direction of t as s increases

τ < 0 : the rotation of the osculating plane is in the direction of a left-handed screw moving in the direction of t as s increases

τ≡ 0 : planar curve

Page 58: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG58

Binormal vector and torsion

• Binormal vector for space implicit curve

Page 59: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG59

Binormal vector and torsion

• Torsion of space implicit curve

Page 60: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG60

Binormal vector and torsion

! dot product !

Page 61: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG61

Binormal vector and torsion

A circular helix

Circular helix with a = 2, b = 3 for 0≤ t≤ 6π

Page 62: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG62

Binormal vector and torsion

The parametric speed

Arc length

Arc length parameterization

Page 63: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG63

Binormal vector and torsion

Derivatives to arc length

Page 64: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG64

Binormal vector and torsion

Curvature and torsion

Page 65: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG65

Frenet-Serret formulae

We have known

Page 66: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG66

Frenet-Serret formulae

For the arc length parameter

Frenet-Serret formulae

Page 67: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG67

Frenet-Serret formulae

Intrinsic equations of the curve

They totally decide the shape of curve except for a rigid transformation!

Page 68: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG68

Frenet-Serret formulae

For the arbitrary speed parameter

Page 69: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG69

Frenet-Serret formulae: example

A circular helix

Page 70: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG70

Frenet-Serret formulae: example

A circular helixArc length parametrization

Intrinsic equations

Page 71: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG71

Frenet-Serret formulae: example

Frenet-Serret equations

Differentiate the first equation twice and the second equation once

Page 72: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG72

Frenet-Serret formulae: example

Eliminating

The general solution is

Page 73: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG73

Frenet-Serret formulae: example

Given initial conditions

Page 74: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG74

Frenet-Serret formulae: example

Finally, A circular helix of arc length parametrization is

Page 75: Mathematical Foundation of Geometric Modeling

11/23/06 State Key Lab of CAD&CG75

Download courses and references

http://www.cad.zju.edu.cn/home/zhx/GM/GM01.zip