Hermite Interpolation with Euclidean Pythagorean Hodograph Curves

Similar documents
G-code and PH curves in CNC Manufacturing

Geometric Lagrange Interpolation by Planar Cubic Pythagorean-hodograph Curves

Motion design with Euler-Rodrigues frames of quintic Pythagorean-hodograph curves

On Rational Minkowski Pythagorean Hodograph Curves

Pythagorean-hodograph curves

G 1 Hermite Interpolation by Minkowski Pythagorean Hodograph Cubics

A quaternion approach to polynomial PN surfaces

NONEXISTENCE OF RATIONAL ROTATION MINIMIZING FRAMES ON QUINTIC HELICES

A complete classification of quintic space curves with rational rotation minimizing frames

Approximation of Circular Arcs by Parametric Polynomials

HIGHER DIMENSIONAL MINKOWSKI PYTHAGOREAN HODOGRAPH CURVES

Cubic Helices in Minkowski Space

Spiral spline interpolation to a planar spiral

EXPLICIT ERROR BOUND FOR QUADRATIC SPLINE APPROXIMATION OF CUBIC SPLINE

Geometric Hermite curves with minimum strain energy

Curvature variation minimizing cubic Hermite interpolants

Planar interpolation with a pair of rational spirals T. N. T. Goodman 1 and D. S. Meek 2

Construction of rational surface patches bounded by lines of curvature

ON INTERPOLATION BY PLANAR CUBIC G 2 PYTHAGOREAN-HODOGRAPH SPLINE CURVES

CIRCLE TO CIRCLE TRANSITION WITH A SINGLE PH QUINTIC SPIRAL. Zulfiqar Habib and Manabu Sakai. Received July 16, 2005; revised March 19, 2007

Geometric Interpolation by Planar Cubic Polynomials

Rotation-minimizing frames on space curves theory, algorithms, applications

Arsène Pérard-Gayot (Slides by Piotr Danilewski)

G 2 Curve Design with Generalised Cornu Spiral

Pythagorean-hodograph curves in Euclidean spaces of dimension greater than 3

MA 323 Geometric Modelling Course Notes: Day 07 Parabolic Arcs

Cubic Splines; Bézier Curves

Geometry of Root-Related Parameters of PH Curves

High order parametric polynomial approximation of conic sections

Keyframing. CS 448D: Character Animation Prof. Vladlen Koltun Stanford University

Extrapolation Methods for Approximating Arc Length and Surface Area

Introduction to Computer Graphics. Modeling (1) April 13, 2017 Kenshi Takayama

SIAM Conference on Applied Algebraic Geometry Daejeon, South Korea, Irina Kogan North Carolina State University. Supported in part by the

Curves and Surfaces Represented by Support Function

Katholieke Universiteit Leuven Department of Computer Science

Sample Exam 1 KEY NAME: 1. CS 557 Sample Exam 1 KEY. These are some sample problems taken from exams in previous years. roughly ten questions.

Rational Bézier Patch Differentiation using the. Rational Forward Difference Operator

CMSC427 Parametric curves: Hermite, Catmull-Rom, Bezier

Curves. Hakan Bilen University of Edinburgh. Computer Graphics Fall Some slides are courtesy of Steve Marschner and Taku Komura

Computing roots of polynomials by quadratic clipping

Bézier Curves and Splines

Robotics I. February 6, 2014

Approximation of Circular Arcs by Parametric Polynomial Curves

On Rational Minkowski Pythagorean Hodograph Curves

Investigation of non-lightlike tubular surfaces with Darboux frame in Minkowski 3-space

Characterization of Planar Cubic Alternative curve. Perak, M sia. M sia. Penang, M sia.

Computergrafik. Matthias Zwicker Universität Bern Herbst 2016

arxiv: v1 [cs.gr] 17 Sep 2016

The Essentials of CAGD

HERMITE INTERPOLATION BY PYTHAGOREAN HODOGRAPH QUINTICS

Computing roots of polynomials by quadratic clipping

G 1 interpolation with a single Cornu spiral segment

Chordal cubic spline interpolation is fourth order accurate

1.1. The analytical denition. Denition. The Bernstein polynomials of degree n are dened analytically:

IMA Preprint Series # 2131

V11. Line Integrals in Space

COMPUTING ROOTS OF SYSTEMS OF POLYNOMIALS BY LINEAR CLIPPING

Introduction to Curves. Modelling. 3D Models. Points. Lines. Polygons Defined by a sequence of lines Defined by a list of ordered points

CSE 167: Lecture 11: Bézier Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012

An O(h 2n ) Hermite approximation for conic sections

Vector Calculus, Maths II

Tennessee s State Mathematics Standards Precalculus

Bernstein polynomials of degree N are defined by

On Parametric Polynomial Circle Approximation

M2R IVR, October 12th Mathematical tools 1 - Session 2

Determining special roots of quaternion polynomials

Formalizing Basic Quaternionic Analysis

Interpolation and polynomial approximation Interpolation

High-speed cornering by CNC machines under prescribed bounds on axis accelerations and toolpath contour error

Rational Bézier Patch Differentiation using the Rational Forward Difference Operator

Curves, Surfaces and Segments, Patches

13 Path Planning Cubic Path P 2 P 1. θ 2

Tetrahedral C m Interpolation by Rational Functions

Lagrange Interpolation and Neville s Algorithm. Ron Goldman Department of Computer Science Rice University

CGT 511. Curves. Curves. Curves. What is a curve? 2) A continuous map of a 1D space to an nd space

(1) Recap of Differential Calculus and Integral Calculus (2) Preview of Calculus in three dimensional space (3) Tools for Calculus 3

Analytic and Algebraic Properties of Canal Surfaces

Weighted G 1 -Multi-Degree Reduction of Bézier Curves

3 = arccos. A a and b are parallel, B a and b are perpendicular, C a and b are normalized, or D this is always true.

ON GEOMETRIC INTERPOLATION BY PLANAR PARAMETRIC POLYNOMIAL CURVES

Home Page. Title Page. Contents. Bezier Curves. Milind Sohoni sohoni. Page 1 of 27. Go Back. Full Screen. Close.

Topic 5.1: Line Element and Scalar Line Integrals

Directional Field. Xiao-Ming Fu

Introduction. Chapter Points, Vectors and Coordinate Systems

Math 234. What you should know on day one. August 28, You should be able to use general principles like. x = cos t, y = sin t, 0 t π.

2 The De Casteljau algorithm revisited

12.3 Curvature, torsion and the TNB frame

Scientific Computing: An Introductory Survey

Clifford algebra, spin representation, and rational parameterization of curves and surfaces

Section 0.2 & 0.3 Worksheet. Types of Functions

Barycentric coordinates for Lagrange interpolation over lattices on a simplex

Minimal surfaces in quaternionic symmetric spaces

The Extended Evolute as the Transition Set of Distance Functions

Section 2.1 (First Order) Linear DEs; Method of Integrating Factors. General first order linear DEs Standard Form; y'(t) + p(t) y = g(t)

STRUCTURE OF GEODESICS IN A 13-DIMENSIONAL GROUP OF HEISENBERG TYPE

G 2 Bézier-Like Cubic as the S-Transition and C-Spiral Curves and Its Application in Designing a Spur Gear Tooth

Multidimensional Geometry and its Applications

Course Notes Math 275 Boise State University. Shari Ultman

MA 323 Geometric Modelling Course Notes: Day 20 Curvature and G 2 Bezier splines

Math Numerical Analysis Mid-Term Test Solutions

Transcription:

Hermite Interpolation with Euclidean Pythagorean Hodograph Curves Zbyněk Šír Faculty of Mathematics and Physics, Charles University in Prague Sokolovská 83, 86 75 Praha 8 zbynek.sir@mff.cuni.cz Abstract. We describe various algorithms for Hermite interpolation with Pythagorean Hodograph curves in Euclidean space. In this procedure we apply complex numbers and quaternions Keywords: Hemite interpolation, Pythagorean Hodograph curves, quaternions Introduction Pythagorean hodograph (PH) curves (see the survey [3] and the references cited therein), form a remarkable subclass of polynomial parametric curves. They have a piecewise polynomial arc length function and, in the planar case, rational offset curves. These curves provide an elegant solution of various difficult problems occurring in applications, in particular in the context of CNC (computer-numerical-control) machining. Our paper is devoted to the Hermite interpolation by PH curves, which seems to the most promising among various methods for their construction. Since it is essentially a local construction, it results in a relatively reasonable system of nonlinear equations, which can be explicitly solved in certain cases. Other (global) methods lead typically to a huge system of nonlinear equation having unclear solvability condition. As an additional problem it is necessary to make a choice among a great number of solutions. After recalling some basic facts about PH curves in Euclidean space we outline the basic algorithm about C interpolation in the plane and our results about C 2 Hermite interpolation in Euclidean space in the context of other interpolation techniques. Finally we conclude the paper. 2 Euclidean H curves In this section we summarize some basic properties of Pythagorean Hodograph curves in Euclidean space. A Bézier curve is called Pythagorean Hodograph (PH) if the length of its tangent vector, taken in the appropriate metric, depends in a polynomial way on the parameter. In particular p(t) = [x(t),y(t)] is called planar PH curve if there exists a polynomial σ(t) such that x (t) 2 + y (t) 2 = σ 2 (t), ()

p(t) = [x(t), y(t), z(t)] is called a spatial PH curve if there exists a polynomial σ(t) such that x (t) 2 + y (t) 2 + z (t) 2 = σ 2 (t). (2) The degree of σ(t) equals n, where n is the degree of the PH curve. The curve h(t) = [x (t),y (t){,z (t)}] is called the hodograph of p(t). The planar polynomial curve p(t) can be identified with complex valued polynomial p(t) = x(t) + iy(t). The hodograph h(t) = x (t) + iy (t) then satisfy the equation () if and only if it is of the form h(t) = w(t) 2, where w(t) = v(t)+iw(t) is a complex valued polynomial called preimage, [2]. In a similar way, the spatial polynomial curve p(t) can be identified with pure quaternion valued polynomial p(t) = x(t)i + y(t)j + z(t)k. The hodograph h(t) = x (t)i + y (t)j + z (t)k then satisfy the equation (2) if and only if it is of the form h(t) = A(t)iA (t), where A(t) = u(t)+v(t)i+ p(t)j + q(t)k is a quaternion valued polynomial called preimage, []. In the Hermite interpolation one wants to construct a suitable object (a PH curve in our case) matching prescribed boundary data. This data are typically the end point positions and some additional constraints, which can be analytical (derivative vectors) or geometrical (tangent directions, curvature, etc.) information. In the former case we talk about C-interpolation, in the latter about G-interpolation. 3 C Hermite interpolation by PH quintics The following algorithm is based on results from [3]. Algorithm Procedure PHQuintic(P 0,V 0,P,V ) Input: End points P 0, P and end point derivatives (velocity vectors) V 0, V. All these data are considered as complex numbers, by identifying the plane with the Argand diagram. Output: PH quintic p(τ) defined over the interval [0, ] and interpolating the input.. Transform the data to a certain canonical position, Ṽ 0 = V 0 V, Ṽ =. P P 0 P P 0 2. Compute the control points of the so called preimage: w 0 = + Ṽ 0, w 2 = Ṽ +. w = 3(w 0+w 2 )+ + 20 5(Ṽ0+Ṽ)+0w 0 w 2, 4 where + denotes square root with the positive real part.

3. Compute the control points of the hodograph (i.e., the first derivative vector) and transform it back to the original position: h 0 = w 2 0(P P 0 ) h = w 0 w (P P 0 ) h 2 = ( 2 3 w2 + 3 w 0w 2 )(P P 0 ) h 3 = w w 3 (P P 0 ) h 4 = w 2 2(P P 0 ). 4. Compute the control points of the PH interpolant, p 0 = P 0, p i = p i + 5 h i for i =...5, and return the PH curve in Bernstein-Bézier representation 5 ( ) 5 p(τ) = p i τ i ( τ) 5 i. i i=0 Remark It can be verified by a direct computation that the curve p(τ) interpolates the input data and that it is a PH curve, i.e., its parametric speed is a (possibly piecewise) polynomial: where is the so called preimage. p (τ) = w(τ) 2 P P 0, w(τ) = w 0 ( τ) 2 + 2w τ( τ) + w 2 τ 2 Remark 2 Algorithm PHQuintic fails for some rare cases of singular data. First of all the start point P 0 and the end point P must be different because of the division in the step. Next, the function + is not defined on the line R 0 = {λ + 0i : λ (,0]}. In order to compute w 0 and w 2 it is therefore necessary that the input tangent vectors V 0 and V are non-zero and that they are not opposite to the difference vector P P 0. Finally, we need 20 5(Ṽ0+Ṽ)+0w 0 w 2 / R 0. (3) Note, that the vector w 0 w 2 = + Ṽ 0 Ṽ bisects the angle between Ṽ0 and Ṽ and its length is equal to the geometric average of the lengths of Ṽ0 and Ṽ. Only input tangent vectors having a certain rare symmetry with respect to the difference vector P P 0 and at the same time being much longer P P 0 may violate condition (3). Various sufficient conditions can be determined for practical purposes in order to satisfy (3), e.g., V i 3 P P 0, i = 0,.

4 C 2 Hermite interpolation in plane and space Table summarizes the known results about Hermite interpolation in the Euclidean plane and space. One can observe two facts. First, interpolation of geometrical data is in principle more complicated then that of analytical data. Only the G construction is available both in space and plane. The combined G 2 [C ] interpolation in plane leads to the most complicated (quartic) equations. Moreover, while the C-interpolation has always a solution, this is not the case for G-interpolation, where certain conditions of solvability exist. Second, the space yields more freedom to satisfy the PH condition and therefore there are more interpolants of the same degree than in the plane. Recently we gave new results concerning C 2 Hermite interpolation [4] and [5]. The task is to construct a PH curve p(t) matching given C 2 Hermite boundary data: the end points p b, p e, the first derivative vectors (velocities) v b, v e and the second derivative vectors (accelerations) a b, a e. This can be done most efficiently by constructing the preimage. If we work in a suitable polynomial basis (such as Bernstein Bézier basis), the boundary condition which are linear for the curve p(t) and its hodograph h(t) become non-linear for the preimage w(t) or A(t). The resulting system can be however reduced to successive explicit solution (in quaternions or complex numbers) of several equations which are quadratic or linear (see Table 2). While the complex number equation have a finite number of solution, the quaternion ones have one dimensional systems of solutions. We thus obtain a finite number of preimages for the planar case and multidimensional system of preimages in the space case. After eliminating some redundancies we finally obtain four PH interpolants in the planar case and a four dimensional system of solutions in the space case. Via an asymptotical analysis we were able to identify the best solution, which behaves in a most suitable way, when we interpolate data taken from an analytical curve and we diminish the step size. As an example, Figure, left shows the system of spatial PH interpolants of degree 9 to the data p b = [0,0,0], v b = [3,0,0], a b = [0,,0] p e = [,,0], v e = [3,0,0], a e = [0,,0]. Note that these data lie in fact in the xy-plane and therefore the four dimensional system of spatial interpolants must contain the four planar interpolants (shown on the right figure). 5 Conclusion The described constructions represent the state of art of the Hermite interpolation by PH curves. We were able to obtain construction methods (4)

data number of solutions available results 2D-plane G 2 solutions, quadratic equation (Walton and Meek [2]) points [2]. C 4 solutions, quadratic equations (Farouki and Neff [6]) G 2 [C ] 8 solutions, quartic equations (Jüttler [9]) C 2 G 4 solutions, quadratic equations (Farouki et al. [5]) 2 solutions, quadratic equation (Jüttler and Mäurer [0]) C 2 parametric system of solutions, quadratic equations in quaternions (Farouki and Neff [4]) C 2 4 parametric system of solutions, quadratic and linear equations in quaternions Jüttler [5]) order 4 at generic The best solution can be identified via its rotation index (Moon et al. [3]). order 6 at generic points [9]. Inflections reduce the approximation order. order 6 at all points (Šír and Jüttler [4]). 3D-space order 4 at generic points (Mäurer and Jüttler []). (Šír and One solution has the best approximation order 4, preserves planarity and symmetry of the data (Šír and Jüttler [6]). One solution has the best approximation order 6, preserves planarity and symmetry of the data [5]. Table : Hermite interpolation by Euclidean PH curves. 2D-plane, comp. num. 3D-space, quater. Equation #Solutions Equation #Solutions quadratic x 2 = a 2 XiX = A -param. sys. linear xb = a X B = A -param. sys. Table 2: Two types of equation occurring in the C 2 Hermite interpolation process. The unknowns are x (complex number) or X (quaternion).

z 0.4 0 0.4 0 0.4 0 x 0.8 0.4 0.8 y 0.4.2 z 0 0.4 0 0.4 0 x 0.8 Figure : Left figure shows 64 representants of the four dimensional system of PH interpolants of the data (4). Right figure shows 4 interpolants, which are planar. The best interpolant is plotted in bold..2 0.8 0.4 y along with an analysis of the quality of the solutions. In this way we described the solution which can be used for example for conversion of analytical curves into PH splines or (in the Euclidean case) for smoothing tool paths. Acknowledgment. Zbyněk Šír was supported by the project MSM 002620839 of the Czech Ministry of Education and by the project no. 20/08/0486 of the Czech Science Foundation. References [] H.I. Choi, D.S. Lee & H.P. Moon (2002), Clifford algebra, spin representation, and rational parameterization of curves and surfaces. Adv. Comput. Math. 7, 5 48. [2] R.T. Farouki (994), The conformal map z z 2 of the hodograph plane. Comp. Aided Geom. Design, 363 390. [3] R.T. Farouki (2002), Pythagorean hodograph curves, Handbook of Computer Aided Geometric Design (J. Hoschek, G. Farin & M.-S. Kim, eds.), Elsevier, 405 427. [4] R.T. Farouki, M. al-kandari & T. Sakkalis (2002), Hermite interpolation by rotation-invariant spatial Pythagorean-hodograph curves., Adv. Comput. Math. 7, 369 383. [5] R.T. Farouki, J. Manjunathaiah & S. Jee (998), Design of rational cam profiles with Pythagorean-hodograph curves. Mech. Mach. Theory 33, 669 682.

[6] R.T. Farouki & C.A. Neff (995), Hermite interpolation by Pythagorean-hodograph quintics, Math. Comput. 64, 589 609. [7] R.T. Farouki & Sakkalis T. (990), Pythagorean hodographs, IBM Journal of Research and Development, 34, 736 752. [8] R.T. Farouki & T. Sakkalis (994), Pythagorean-hodograph space curves, Adv. Comput. Math. 2, 4 66. [9] B. Jüttler (200), Hermite interpolation by Pythagorean hodograph curves of degree seven. Math. Comp. 70, 089. [0] B. Jüttler & C. Mäurer (999), Cubic Pythagorean Hodograph Spline Curves and Applications to Sweep Surface Modeling, Comp. Aided Design 3, 73 83. [] C. Mäurer & B. Jüttler (999), Rational approximation of rotation minimizing frames using Pythagorean hodograph cubics, Journal for [2] D.S. Meek & D.J. Walton (997), Geometric Hermite interpolation with Tschirnhausen cubics, Journal of Computational and Applied Mathematics 8, 299 309. [3] H.P. Moon, R.T. Farouki & H.I. Choi (200), Construction and shape analysis of PH quintic Hermite interpolants, Comp. Aided Geom. Design 8, 93 5. [4] Z. Šír & B. Jüttler (2004), Constructing acceleration continuous tool paths using pythagorean hodograph curves. Mech. Mach. Theory, 40():258-272, 2005. [5] Z. Šír & B. Jüttler (2005), C 2 Hermite interpolation by space Pythagorean Hodograph curves, Math. Comp., 76(259):373-39, 2007. [6] Z. Šír & B. Jüttler (2005), Spatial Pythagorean Hodograph Quintics and the Approximation of Pipe Surfaces, In R. Martin, H. Bez and M. Sabin, editors, The Mathematics of Surfaces XI, pages 364-380. Springer, 2005.