Anda di halaman 1dari 54

Spatial Pythagorean hodographs,

quaternions, and rotations in R3 and R4


— interspersed with historical vignettes —

“for your erudition and entertainment”

Rida T. Farouki

Department of Mechanical & Aeronautical Engineering,


University of California, Davis
— synopsis —

• motivation – real-time interpolators for CNC machines

• background – fundamentals of the quaternion algebra

• interlude #1 – unit quaternions and rotations in R3

• basic theory – complex number & quaternion formulations


of planar & spatial Pythagorean-hodograph curves

• interlude #2 – unit quaternions and rotations in R4

• applications – first-order PH quintic Hermite interpolants


& computation of rotation-minimizing frames
3-axis “open architecture” CNC mill

• MHO Series 18 Compact Mill

• 18” × 18” × 12” work volume

• Yaskawa brushless DC motors

• zero-backlash precision ball screws

• linear encoders, ± 0.001” accuracy

• MDSI OpenCNC control software

• custom real-time interpolators


“conventional” vs. “high-speed” machining

• machining times are major determinant of product cost

• usual: feedrate ≤ 100 in/min, spindle speed ≤ 6, 000 rpm

• HSM: feedrate ≤ 1, 200 in/min, spindle speed ≤ 50, 000 rpm

• in HSM inertial effects may dominate cutting forces, friction, etc.


(especially for intricate curved tool paths)

• most CNC machines significantly under-perform in practice


– control software, not hardware, is the limiting factor
real-time CNC interpolators

• computer numerical control (CNC) machine has digital control system

• in each sampling interval (∆t ∼ 10−3 sec) of servo system, compare


actual position (measured by encoders on each machine axis) with
reference position (computed by real-time interpolator algorithm)

• real-time CNC interpolator algorithm — given parametric curve r(ξ)


and speed (feedrate) function v, compute reference-point parameter
values ξ1, ξ2, . . . in real time:

ξk
|r0(ξ)| dξ
Z
= k∆t , k = 1, 2, . . .
0 v

• Pythagorean-hodograph (PH) curves — analytic reduction of


“interpolation integral” =⇒ accurate & efficient real-time interpolator
real-time CNC interpolators
for Pythagorean-hodograph (PH) curves

12 p1
25 segments
ε = 0.0105

p5

8 50 segments
ε = 0.0025

p0
p4
4 100 segments
ε = 0.0006

0 4 8 12 16

Left: analytic tool path description (quintic PH curve). Right: approximation


of path to various prescribed tolerances using piecewise-linear G codes.
comparative feedrate performance: 100 & 800 ipm
200
G codes PH curve
100 ipm 100 ipm
feedrate (ipm) 150

100

50

0
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8

800 G codes PH curve


800 ipm 800 ipm
600
feedrate (ipm)

400

200

0
0 1 2 0 1 2
time (seconds) time (seconds)

Both G code and PH curve interpolators give excellent performance at 100 ipm — the
“staircase” nature of the x and y feedrate components (red and green) for the G codes
indicate faithful reproduction of the piecewise-linear path, while the PH curve yields
smooth variations. At 800 ipm, the PH curve interpolator gives impeccable performance,
but the performance of the G code interpolator is severely degraded by “aliasing” between
the finite sampling frequency and discrete nature of the path description.
optimal section-plane orientation
for contour machining of free-form surfaces
parabolic lines on free-form surfaces
Gauss map computation for free-form surfaces
medial axis transform for complement of Gauss map
fundamentals of quaternion algebra
quaternions are four-dimensional numbers of the form

A = a + ax i + ay j + az k and B = b + b x i + by j + bz k

that obey the sum and (non-commutative) product rules

A + B = (a + b) + (ax + bx) i + (ay + by ) j + (az + bz ) k

A B = (ab − axbx − ay by − az bz )
+ (abx + bax + ay bz − az by ) i
+ (aby + bay + az bx − axbz ) j
+ (abz + baz + axby − ay bx) k

basis elements 1, i, j, k satisfy i2 = j2 = k2 = i j k = −1

equivalently, i j = − j i = k , jk = −kj = i, ki = −ik = j


scalar-vector form of quaternions
set A = (a, a) and B = (b, b) — a, b and a, b are scalar and vector parts
(a, b and a, b also called the real and imaginary parts of A, B)

A + B = (a + b, a + b)

A B = ( ab − a · b , a b + b a + a × b)

(historical note: Hamilton’s quaternions preceded, but were eventually


supplanted by, the 3-dimensional vector analysis of Gibbs and Heaviside)

A∗ = (a, −a) is the conjugate of A

modulus : |A |2 = A∗A = AA∗ = a2 + |a|2

note that |A B | = |A | |B| and (A B)∗ = B ∗A∗


unit quaternions & spatial rotations

any unit quaternion has the form U = (cos 21 θ, sin 12 θ n)

describes a spatial rotation by angle θ about unit vector n

for any vector v the quaternion product

v0 = U v U ∗

yields the vector v0 corresponding to a rotation of v by θ about n

here v is short-hand for a “pure vector” quaternion V = (0, v)

unit quaternions U form a (non-commutative) group under multiplication


concatenation of spatial rotations

rotate θ1 about n1 then θ2 about n2 → equivalent rotation θ about n

θ = ± 2 cos−1(cos 12 θ1 cos 12 θ2 − n1 · n2 sin 12 θ1 sin 12 θ2)

sin 12 θ1 cos 12 θ2 n1 + cos 12 θ1 sin 12 θ2 n2 − sin 12 θ1 sin 12 θ2 n1 × n2


n = ± q
1 − (cos 12 θ1 cos 12 θ2 − n1 · n2 sin 21 θ1 sin 12 θ2)2

sign ambiguity: equivalence of − θ about − n and θ about n

formulae discovered by Olinde Rodrigues (1794-1851)

set U1 = (cos 12 θ1, sin 12 θ1n1) and U2 = (cos 12 θ2, sin 12 θ2n2)

U = U2 U1 = (cos 12 θ, sin 12 θn) defines angle, axis of compound rotation


spatial rotations do not commute

z z

β
β

y α y
x x

blue vector is obtained from red vector by the concatenation of two spatial
rotations — left: Ry (α) Rz (β), right: Rz (β) Ry (α) — the end results differ

define U1 = (cos 12 α, sin 12 α j), U2 = (cos 12 β, sin 12 β k) — U1 U2 6= U2 U1


the “troubled origins” of vector analysis
The algebraically real part may receive . . . all values contained on the
one scale of progression of number from negative to positive infinity; we
shall call it therefore the scalar part, or simply the scalar. On the other
hand, the algebraically imaginary part, being constructed geometrically
by a straight line or radius, which has, in general, for each determined
quaternion, a determined length and determined direction in space, may
be called the vector part, or simply the vector . . .
William Rowan Hamilton, Philosophical Magazine (1846)

A school of “quaternionists” developed, which was led after Hamilton’s


death by Peter Tait of Edinburgh and Benjamin Pierce of Harvard. Tait
wrote eight books on the quaternions, emphasizing their applications to
physics. When Gibbs invented the modern notation for the dot and cross
product, Tait condemned it as a “hermaphrodite monstrosity.” A war of
polemics ensued, with luminaries such as Kelvin and Heaviside writing
devastating invective against quaternions. Ultimately the quaternions lost,
and acquired a taint of disgrace from which they never fully recovered.
John C. Baez, The Octonions (2002)
the sad demise of quaternions

E. T. Bell, Men of Mathematics, Hamilton = “An Irish Tragedy”

Hamilton’s Lectures on Quaternions (1853) “would take any


man a twelve-month to read, and near a lifetime to digest . . .”
– Sir John Herschel, discoverer of the planet Uranus

Hamilton’s vision of quaternions as the “universal language”


of mathematical and physical sciences was never realized —
this role is now occupied by vector analysis, distilled from the
quaternion algebra by the physicists James Clerk Maxwell
(1831-1879) and Josiah Willard Gibbs (1839-1903), and the
engineer Oliver Heaviside (1850-1925)
families of spatial rotations

find U = (cos 12 θ, sin 12 θ n) that rotates i = (1, 0, 0) → v = (λ, µ, ν)

n2x(1 − cos θ) + cos θ = λ ,


nxny (1 − cos θ) + nz sin θ = µ ,
nz nx(1 − cos θ) − ny sin θ = ν .
q
2 1
± cos2 12 α − cos 2θ
nx = ,
sin 12 θ
q
2 1
±µ cos2 12 α − cos 2θ − ν cos 12 θ
ny = ,
(1 + λ) sin 12 θ
q
2 1
±ν cos2 12 α − cos 2θ + µ cos 12 θ
nz = .
(1 + λ) sin 12 θ

general solution, where α = cos−1 λ and α ≤ θ ≤ 2π − α


Parameterizes family of spatial rotations mapping unit vectors i → v by
specifying rotation axis n as a function of rotation angle θ, over restricted
domain θ ∈ [ α, 2π − α ] where α is angle between i and v.
Define unit vectors e⊥, e0 orthogonal to and in common plane of i and v

i×v i+v
e⊥ = and e0 =
|i × v| |i + v|

Rotation axis lies in plane spanned by these vectors, may be written as


q
sin 21 α cos 12 θ e⊥ ± cos2 12 α − cos2 12 θ e0
n(θ) = 1 1 .
cos 2 α sin 2 θ

for any θ ∈ (α, 2π − α) there are two axes n — in the plane of e⊥, e0 with
equal inclinations to e⊥ — about which a rotation by angle θ maps i → v
◦ when θ = α or 2π − α, we have n = e⊥ or −e⊥, and rotation is
along great circle between i and v;
◦ when θ = π, we have n = ± e0, so i executes either a clockwise
or anti–clockwise half-rotation about e0 onto v;
e⊥ e⊥ n v
v

n
e0
i
i

(a) (b)

(c) (d)

Spatial rotations of unit vectors i → v. (a) Vectors e⊥ (orthogonal to i, v)


and e0 (bisector of i, v) — the plane Π of e⊥ and e0 is orthogonal to that of
i and v. (b) For any rotation angle θ ∈ (α, 2π − α), where α = cos−1(i · v),
there are two possible rotations, with axes n inclined equally to e⊥ in the
plane Π. (c) Sampling of the family of spatial rotations i → v, shown as
loci on the unit sphere. (d) Axes n for these rotations, lying in the plane Π.
Pythagorean-hodograph (PH) curves

r(ξ) = PH curve ⇐⇒ coordinate components of r0(ξ)


comprise a “Pythagorean n-tuple of polynomials” in Rn

PH curves exhibit special algebraic structures in their hodographs

• rational offset curves rd(ξ) = r(ξ) + d n(ξ)


Z ξ
• polynomial arc-length function s(ξ) = |r0(ξ)| dξ
0

Z 1
• closed-form evaluation of energy integral E = κ2 ds
0

• real-time CNC interpolators, rotation-minimizing frames


Pythagorean triples of polynomials


0 2 2
 x (t) = u (t) − v (t)

x02(t) + y 02(t) = σ 2(t) ⇐⇒ y 0(t) = 2 u(t)v(t)
 σ(t) = u2(t) + v 2(t)

key features of planar PH curves

◦ planar PH cubics come from unique curve — Tschirnhausen’s cubic

◦ planar PH quintics can interpolate arbitrary Hermite data


solve nested quadratic equations — always four distinct solutions

◦ extend to planar C 2 PH quintic splines — “tridiagonal” system


of 2N ±1 quadratic equations in N complex unknowns
Plimpton 322

origin — Larsa (Tell Senkereh) in Mesopotamia ∼ 1820–1762 BC

discovered in 1920s — bought in market by dealer Edgar A. Banks — sold


to collector George A. Plimpton for $10 — donated to Columbia University

deciphered in 1945 by Otto Neugebauer and Abraham Sachs — but


significance, meaning, or “purpose” still the subject of great controversy
sketch of Plimpton 322 by Eleanor Robson

fifteen rows of sexagecimal numbers in four columns

3, 31, 49 → 3 × (60)2 + 31 × 60 + 49
48 54 1 40
1; 48, 54, 1, 40 → 1 + + + +
60 (60)2 (60)3 (60)4

first three columns generated by integers p, q through formulae

2 2
" #
2
p +q 2 2 2 2
f = , s = p −q , d = p +q
2pq

with 1 < q < 60, q < p, p/q steadily decreasing


f = [ (p2 + q 2 )/2pq ]2 s = p2 − q 2 d = p2 + q 2 # p q
[1;59,0,]15 1,59 2,49 1 12 5
[1;56,56,]58,14,50,6,15 56,7 1,20,25 2 1,4 27
[1;55,7,]41,15,33,45 1,16,41 1,50,49 3 1,15 32
[1;]5[3,1]0,29,32,52,16 3,31,49 5,9,1 4 2,5 54
[1;]48,54,1,40 1,5 1,37 5 9 4
[1;]47,6,41,40 5,19 8,1 6 20 9
[1;]43,11,56,28,26,40 38,11 59,1 7 54 25
[1;]41,33,59,3,45 13,19 20,49 8 32 15
[1;]38,33,36,36 8,1 12,49 9 25 12
1;35,10,2,28,27,24,26,40 1,22,41 2,16,1 10 1,2 1 40
1;33,45 45,0 1,15,0 11 1,0 30
1;29,21,54,2,15 27,59 48,49 12 48 25
[1;]27,0,3,45 2,41 4,49 13 15 8
1;25,48,51,35,6,40 29,31 53,49 14 50 27
[1;]23,13,46,40 56 1,46 15 9 5

Pythagorean triples of integers

 d=
 s = p2 − q 2
s = p2 – q2
p2
+q 2
s2 + l2 = d2 ⇐⇒ l = 2pq
d = p2 + q 2

θ
l=2pq
significance of Plimpton 322

R. C. Buck (1980), Sherlock Holmes in Babylon, Amer. Math. Monthly 87, 335-345

• investigate in isolation as a “mathematical detective story”


• an exercise in number theory (s, l, d) = (p2 − q 2, 2pq, p2 + q 2) ?
• construction of a trigonometric table — sec2 θ = [(p2 + q 2)/2pq] 2 ?

Eleanor Robson (2001), Neither Sherlock Holmes nor Babylon —


A Reassessment of Plimpton 322, Historia Mathematica 28, 167-206

• studied mathematics, then Akkadian and Sumerian at Oxford


• linguistic, cultural, historical context critical to a proper interpretation
• number theory & trigonometry interpretations improbable — more likely
a set of “cut–and–paste geometry” exercises for the training of scribes
“cut-and-paste geometry” problem
1 1
find regular reciprocals x, satisfying x = + h for integer h
x x

h/2

1/x + h/2
1/x

x = 1/x + h 1/x + h/2

 2  2
1 h h
“cut-and-paste geometry” problem : 1 = + −
x 2 2
   
p 1 q 1 h 1 p q h 1 p q
writing x = , = gives + = + , = −
q x p x 2 2 q p 2 2 q p

scaling by 2pq yields d = p2 + q 2, s = p2 − q 2

f represents (unscaled) area of large square


complex model for planar PH curves

w w2

w(t) = u(t) + i v(t) maps to r0(t) = w2(t) = u2(t) − v 2(t) + i 2 u(t)v(t)

rotation invariance of planar PH form: rotate by θ, r0(t) → r̃0(t)

then r̃0(t) = w̃2(t) where w̃(t) = ũ(t) + i ṽ(t) = exp(i 21 θ) w(t)

1 1
    
ũ(t) cos 2θ − sin 2θ u(t)
in other words, = 1 1
ṽ(t) sin 2θ cos 2θ v(t)
Bezier curve 2
PH cubic iff L2 = L1L3 & θ1 = θ2 (1990)
P. de Casteljau (Citroen) – P. Bezier (Renault)

p4 L2 θ2
L3

convex hull
p5 θ1

p3 subdivision L1
unique curve !

p2 variation diminishing
p0
numerical stability Farouki’s Tschirnhausen’s (1690) cubic

p1 caustic for
reflection
by parabola
n
n
r(t) = ∑ pk (1–t)n–ktk
k=0 k
trisectrix of Catalan
Bernstein basis on [0,1] : l’Hospital’s cubic
[ (1–t) + t ]n = (1–t)n + n(1–t)n–1t + ... + tn
Ehrenfried Walther von Tschirnhaus 1651–1708

◦ contemporary of Huygens, Leibniz, and Newton

◦ visited London and Paris after studying in Leiden

◦ investigated burning mirrors in Milan and Rome

• Tschirnhaus transform “A method for eliminating all intermediate


terms from a given equation” — Acta Eruditorum, May 1683

• empirical & analytical investigations of caustics by reflection

• Tschirnhausen’s cubic = unique cubic Pythagorean-hodograph curve

• developed manufacture of hard–fired porcelain in Dresden


Tschirnhaus transform of cubic equation

t3 + a2t2 + a1t + a0 = 0

Descartes: t → t − 31 a2 eliminates t2 term

Tschirnhaus considers cubics of the form t3 = q t + r

2qa − 3r + 3aτ
and defines transformation t → τ by t = 2
,
q − 3a − 3τ

where a is a root of the quadratic 3q a2 − 9r a + q 2 = 0

2 3 2
(27r − 4q )(2q − 9ra)
simplification gives τ 3 =
27q 2

Bing–Jerrard “reduced form” of quintic: t5 = q t + r


caustics for reflection by a sphere and a parabola

left: epicycloid right: Tschirnhausen’s cubic


Tschirnhausen’s cubic = negative pedal of parabola with respect to focus

1
Tschirnhausen’s cubic = trisectrix of Catalan — ∠ P F Q = ∠ OF Q
3

P
Q

O F
Pythagorean quartuples of polynomials


 x0(t) = u2(t) + v 2(t) − p2(t) − q 2(t)
 0

y (t) = 2 [ u(t)q(t) + v(t)p(t) ]
x02(t) + y 02(t) + z 02(t) = σ 2(t) ⇐⇒ 0


 z (t) = 2 [ v(t)q(t) − u(t)p(t) ]
σ(t) = u2(t) + v 2(t) + p2(t) + q 2(t)

R. Dietz, J. Hoschek, and B. Jüttler, An algebraic approach to curves and surfaces on the sphere
and on other quadrics, Computer Aided Geometric Design 10, 211–229 (1993)

H. I. Choi, D. S. Lee, and H. P. Moon, Clifford algebra, spin representation, and rational
parameterization of curves and surfaces, Advances in Computational Mathematics 17, 5-48 (2002)

choose quaternion polynomial A(t) = u(t) + v(t) i + p(t) j + q(t) k

→ spatial Pythagorean hodograph r0(t) = (x0(t), y 0(t), z 0(t)) = A(t) i A∗(t)


quaternion model for spatial PH curves

quaternion polynomial A(t) = u(t) + v(t) i + p(t) j + q(t) k

maps to r0(t) = A(t) i A∗(t) = [ u2(t) + v 2(t) − p2(t) − q 2(t) ] i


+ 2 [ u(t)q(t) + v(t)p(t) ] j + 2 [ v(t)q(t) − u(t)p(t) ] k

rotation invariance of spatial PH form: rotate by θ about n = (nx, ny , nz )

define U = (cos 21 θ, sin 21 θ n) — then r0(t) → r̃0(t) = Ã(t) i Ã∗(t)

where Ã(t) = U A(t) (can interpret as rotation in R4)


matrix form of Ã(t) = U A(t)

    
1 1 1 1
ũ cos 2θ −nx sin 2θ −ny sin 2θ −nz sin 2θ u
1 1 1 1
    
 ṽ   nx sin
2θ cos 2θ −nz sin 2θ ny sin 2θ
 v 
 = 
    
1 1 1 1
−nx sin
  
 p̃   ny sin 2θ nz sin 2θ cos 2θ 2θ
 p 
    
1 1 1 1
q̃ nz sin 2θ −ny sin 2θ nx sin 2θ cos 2θ q

matrix ∈ SO(4)

in general, points have non-closed orbits under rotations in R4


“strange events” in R4 defy geometric intuition !

◦ an elastic sphere can be turned inside out without tearing the material !

◦ a prisoner may escape from a locked room without penetrating its walls !

◦ rigid motions change “left-handed objects” into “right-handed objects” !

◦ a knot in a length of string can be untied without ever moving its ends !

early 20th century: can existence of a fourth dimension, imperceptible to


human senses, explain mysterious psychic and paranormal phenomena?

H. P. Manning, The Fourth Dimension Simply Explained (1910)


& Geometry of Four Dimensions (1914), Dover (reprint), New York.

→ strange phenomena arise from “extra maneuvering freedom” in R4


elementary geometry of four dimensions

lines, planes, and hyperplanes of R4 are the sets of points linearly


dependent upon two, three, and four points of R4 in “general position”

alternatively, lines, planes, and hyperplanes are point sets satisfying


three, two, and one linear equations in the Cartesian coordinates of R4

hyperplane = a copy of familiar Euclidean space R3 — separates


R4 into two disjoint regions (as with a plane in R3, and a line in R2)

generic incidence relations for R4 :

◦ two hyperplanes intersect in a plane

◦ three hyperplanes intersect in a line

◦ four hyperplanes intersect in a point


=⇒ two planes intersect in a point
“absolutely orthogonal” planes in R4

two planes Π1, Π2 ∈ R4 with intersection point p are absolutely orthogonal


if every line through p on Π1 is orthogonal to every line through p on Π2

pairs of “absolutely orthogonal” planes are a strictly four-dimensional


phenomenon — they have no analog in R3

through each point p of a given plane Π1 ∈ R4, there is a unique plane


Π2 ∈ R4 that is absolutely orthogonal

pairs of absolutely orthogonal planes in R4 play an important role in


characterizing four-dimensional rotations
characterization of rotations in R2, R3, R4

R2 : (x + i y) → eiθ (x + i y) — one parameter, rotation angle θ

R3 : v → U v U ∗ where U = (cos 21 θ, sin 12 θ n)


— three parameters, rotation axis n and angle θ

R4 : V → U1V U2∗ — two unit quaternions U1, U2 ⇒ six parameters

stationary set of rotation in Rn = set of points that do not move

simple rotation in Rn — the stationary set is of dimension n − 2

⇒ in R2 and R3, every rotation is simple

simple rotation in R4 — stationary set is a plane through the origin,


and unique absolutely orthogonal plane rotates on itself
a new possibility in R4 — double rotations

if Π1, Π2 ∈ R4 are absolutely orthogonal planes through the origin, each


may rotate upon itself about the other, and these rotations commute —
i.e., the outcome is independent of their order

the stationary set of such a double rotation is the single common point
of Π1, Π2 — i.e., the origin

of the six parameters describing a general rotation in R4, four define the
absolutely orthogonal planes Π1, Π2 and two specify the rotation angles
θ1, θ2 associated with them

under a continuous double rotation — with angular speeds ω1, ω2


associated with the absolutely orthogonal planes Π1, Π2 — points in R4
have closed orbits if and only if the ratio ω2/ω1 is a rational number
spatial PH quintic Hermite interpolants

spatial PH quintic interpolating end points pi, pf & derivatives di, df

r0(t) = A(t) i A∗(t)

where A(t) = A0(1 − t)2 + A12(1 − t)t + A2t2

three equations in three quaternion unknowns A0, A1, A2

r0(0) = A0 i A∗0 = di and r0(1) = A2 i A∗2 = df


Z 1
A(t) i A∗(t) dt = 1
5 A0 i A∗0 + 1
10 (A 0 i A ∗
1 + A1 i A∗0 )
0

+ 1
30 (A 0 i A 2 + 4 A1 i A∗1 + A2 i A∗0 )


+ 1
10 (A 1 i A 2 + A2 i A∗1 ) + 1
5 A2 i A∗2 = pf − pi
solution of fundamental equation

given vector c = |c|(λ, µ, ν) find quaternion A such that

A i A∗ = c

one–parameter family of solutions


q 
1
A(φ) = 2 (1 + λ)|c| − sin φ + cos φ i

µ cos φ + ν sin φ ν cos φ − µ sin φ
+ j+ k
1+λ 1+λ

in R3 there is a continuous family of rotations


mapping the vector i into a given vector (λ, µ, ν)
construction of Hermite interpolants

derivative conditions have form of fundamental equation


— can be solved directly for A0 and A2

end-point condition can then be cast in fundamental form as

(3A0 + 4A1 + 3A2) i (3A0 + 4A1 + 3A2)∗


= 120(pf − pi) − 15(di + df ) + 5(A0 i A∗2 + A2 i A∗0 )

— solve for A1, since A0 and A2 known

solution contains three free parameters φ0, φ1, φ2


but shape of interpolants depends only on their differences

=⇒ ∃ two-parameter family of spatial PH quintic interpolants


to given Hermite data pi, di and pf , df
spatial PH quintic Hermite interpolants

pi = (0, 0, 0) and pf = (1, 1, 1) for both curves


di = (−0.8, 0.3, 1.2) and df = (0.5, −1.3, −1.0) for curve on left,
di = (0.4, −1.5, −1.2) and df = (−1.2, −0.6, −1.2) for curve on right
open problem: find “optimal” φ0, φ2 values

shape of interpolants depends strongly on free parameters


Z
• minimize a shape-measure integral, e.g., E = κ2 ds
(but highly non-linear in the free parameters)

• impose additional conditions (restrict solution space)


— e.g., helicity condition κ/τ = constant

• study geometry of quaternion curve A(t)


— need better insight on geometry of quaternion space H

• extension to spatial C 2 PH quintic splines


defects of Frenet frame (t, n, b) on space curve

• does not depend rationally on curve parameter

• suffers sudden “flip” at inflection points, where κ = 0

• exhibits “unnecessary rotation” in curve normal plane

dt dn db
= d × t, = d × n, = d × b,
ds ds ds

Darboux vector d = κb + τ t Frenet frame rotation rate


component τ t describes instantaneous rotation in normal plane
(unnecessary for a “smoothly varying” orthonormal frame)

causes problems for animation, path planning, swept surfaces, etc.


rotation-minimizing frame on spatial PH curves

    
e2 cos θ sin θ n
new basis in normal plane =
e3 − sin θ cos θ b
Z
where θ = − τ ds : cancels “unnecessary rotation” in normal plane

options for construction of RMF (t, e2, e3) on spatial PH quintics:

• exact analytic form — involves rational function integration,


logarithmic dependence on curve parameter

• rational approximation — use Padé (rational Hermite) approach:


simple algorithm & rapid convergence
comparison of Frenet & rotation-minimizing frames

spatial PH quintic Frenet frame rotation–minimizing frame


rotation rates — RMF vs Frenet frame

3
rate of rotation Frenet frame rotation minimizing

0
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
t

compared with the rotation-minimizing frame (t, e2, e3), the Frenet frame
(t, n, b) exhibits a lot of “unnecessary” rotation (in the curve normal plane)
closure

• Pythagorean-hodograph curves ideally suited to CNC machining

• PH curve advantages: rational offset curves, analytic real-time


interpolators, exact rotation-minimizing frame, bending energy, etc.

• complex number and quaternion models are “natural” formulations


for planar and spatial PH curves — rotation invariance, simplified
construction algorithms, etc.

• spatial PH curve open problems — extra degrees of freedom in


Hermite interpolation, C 2 spline formulation, better “geometrical”
insight into quaternion representation
man’s limited insight

Superior beings, when of late they saw


A mortal man unfold all nature’s law,
Admired such wisdom in an earthly shape,
And showed a Newton as we show an ape.
Could he, whose rules the rapid comet bind,
Describe or fix one movement of his mind?
Who saw its fires here rise, and there descend,
Explain his own beginning, or his end?
Alas, what wonder! Man’s superior part
Unchecked may rise, and climb from art to art:
But when his own great work has but begun,
What reason weaves, by passion is undone.

Alexander Pope (1688-1744), Essay on Man


Boolean algebra of poets & fools

Sir, I admit your general rule,


That every poet is a fool.
But you yourself may serve to show it,
That every fool is not a poet!
Alexander Pope (1688-1744)

Anda mungkin juga menyukai