
A Geometric Characterization of Parametric Cubic Curves MAUREEN C. STONE Xerox PARC and TONY D. DEROSE University of Washington In this paper, we analyze planar parametric cubic curves to determine conditions for loops, cusps, or inflection points. By expressing the curve to be analyzed as a linear combination of control points, it can be transformed such that three of the control points are mapped to specific locations on the plane. We call this image curve the canonical curue. Affine maps do not affect inflection points, cusps, or loops, so the analysis can be applied to the canonical curve instead of the original one. Since the first three points are fixed, the canonical curve is completely characterized by the position of its fourth point. The analysis therefore reduces to observing which region of the canonical plane the fourth point occupies. We demonstrate that for all parametric cubes expressed in this form, the boundaries of these regions are tonics and straight lines. Special cases include Bezier curves, B- splines, and Beta-splines. Such a characterization forms the basis for an easy and efficient solution to this problem. Categories and Subject Descriptors: G.l.l [Numerical Analysis]: Interpolational-spline and piecework polynomial interpolations; 1.3.5 [Computer Graphics]: Computational Geometry and Object Modelling-curue, surface, solid, and object representations General Terms: Algorithms, Design Additional Key Words and Phrases: Bezier curves, characterization, spline curves 1. INTRODUCTION This paper describes a simple geometric method for determining whether a parametric cubic curve such as a Bezier curve, or a segment of a B-spline, has any loops, cusps, or inflection points. We call this determination the character- ization of the curve, and these properties the characteristics of the curve. A curve with a loop is self-intersecting, one with a cusp has a point where the unit tangent This work was supported in part by the National Science Foundation under grant numbers DMC- 8602141 and DMC-8802949, the Xerox Corporation, and the Digital Equipment Corporation. Authors’ addresses: M. C. Stone, Electronic Documents Laboratory, Xerox PARC, 3333 Coyote Hill Rd.; Palo Alto, CA 94304; T. D. DeRose, Department of Computer Science, FR-35, University of Washington, Seattle, Wash. 98195. Permission to copy without fee all or part of this material is granted provided that the copies are not made or distributed for direct commercial advantage, the ACM copyright notice and the title of the publication and its date appear, and notice is given that copying is by permission of the Association for Computing Machinery. To copy otherwise, or to republish, requires a fee and/or specific permission. 0 1989 ACM 0730-0301/89/0700-0147 501.50 ACM Transactions on Graphics, Vol. 8, No. 3, July 1989, Pages 147-163. 148 l M. C. Stone and T. D. DeRose B3 Arch One inflectmn point cusp Two Inflectton pomts Loop Fig. 1. Cubic B6zier curves showing a loop, cusp, and inflection points. Only the point B3 is moving. vector is discontinuous, and one with an inflection point has a point where the curvature vanishes. Characterizing cubic curves has wide-ranging applications. For instance, in numerically controlled milling operations, many of the algorithms rely on the fact that the trace of the curve is smooth-an assumption that is violated if a cusp is present. Inflection points often indicate unwanted oscillations in appli- cations such as automobile body design and aerodynamics, and a surface that has a cross-section curve possessing a loop cannot be manufactured. In most applications, p.arametric cubic curves are expressed as linear combi- nations of control points and basis functions. Because the characteristics of the curve do not change under affine transformations (the transformations including rotation, scaling, translation, and skewing), we can map the curve onto a canon- ical form so that the coordinates of three of the control points are fixed. As the fourth point moves about the plane, the curve may take on a loop, a cusp, or zero to two inflection points, depending only on the position of the moving points, as shown in Figure 1. The plane can therefore be partitioned into regions labeled according to the characterization of the curve segment when the fourth point is in each region, We show that the areas of the plane that define loops, inflection points, and cusps are all bounded by straight lines and conic curves. The simplicity of this form makes the characterization efficient to compute. Previous work in this area has been done by Wang [12], who produced algorithms based on algebraic properties of the coefficients of the parametric polynomial and included some geometric tests using the B-spline control polygon. Su and Liu [ll] have presented a specific geometric solution for the Bezier representation, and Forrest [6] has studied rational cubic curves. This paper presents a general method for making a geometric characterization of a (nonra- tional) parametric cubic that can be applied to any representation that is a linear combination of control points and basis functions. In Sections 3 and 4, we present the construction of a characterization diagram for Bezier curves. This diagram is simpler than the diagra.m of Su and Liu and can be more efficiently imple- mented. In Section 5, certain degenerate cases are addressed. Armed with the intuition gained in Sections 3 and 4, in Section 6 we describe a simple general procedure for constructing characterization diagrams for cubic curves of any type. This is done by showing that all characterization diagrams can be obtained from a two-dimensional slice through a common three-dimensional space. The specific case for Bezier curves is presented before the general method strictly for purposes of making the material more accessible to less sophisticated ACM Transactions on Graphics, Vol. E, No. 3, July 1989. A Geometric Characterization of Parametric Cubic Curves - 149 readers who wish to gain a better understanding of B&zier curves. More proficient readers may therefore wish to read Section 6 before reading Sections 3 and 4. 2. BACKGROUND AND PREVIOUS WORK The general representation of a parametric cubic polynomial consists of a function Q(t) = (X(t), Y(t)), where X(t) and Y(t) are each cubic polynomials with derivatives Q’(t) = (X’(t), Y’(t)) and Q”(t) = (X”(t), Y”(t)). Such a representation generally defines a curve of infinite length. To define a curve of finite length it is necessary to restrict the parameter t typically to the interval [0, 11. In this paper, we use the terms cubic curue, parametric cubic, or untrimmed curve to refer to the infinite curve, and segment, cubic segment, or trimmed curve to refer to a bounded curve. The power basis representation for Q(t) is defined as Q(t) = C aiti i=O This is a special case of a more general form where the curve is represented as a linear combination of control points and basis functions: Q(t) = C Pidi(t), i=O where the Pi are the control points, and the d<(t) are the basis functions. This equation is often represented in matrix form [l]. Although planar parametric cubic curves are quite flexible, they are somewhat constrained in the diversity of their characterizations. A number of previous papers have examined these issues in the context of computer-aided geometric design and graphics (cf. [5], [7], [ll] and [12]). Forrest [6] has gone somewhat further and examined rational cubic curves. For our purposes, the most relevant works are [ll] and [12]. In particular, these authors show that loops, cusps, and inflection points are mutually exclusive. Thus, if a nondegenerate parametric cubic curve has a cusp, then it cannot have a loop or an inflection point; if it has a loop, then it cannot have either a cusp or an inflection point, and so forth. Moreover, a nondegenerate parametric cubic curve cannot have more than one cusp, one loop, or two inflection points. Further, they show that the presence of a loop, a cusp, or inflection points can all be determined by examining F(t) = det(Q’(t), Q”(t)) = X’(t)Y”(t) - X”(t)Y’(t), which is a function that is proportional to the signed curvature of the curve at the point Q(t). (The signed curvature is defined to have a magnitude equal to the curvature of the curve, with the sign being chosen as positive if the cross product of Q’(t) and Q”(t) points in the z direction.) The vanishing of F(t) indicates the presence of inflection points since at such points the first and second derivative vectors are linearly dependent, which causes the curvature to vanish. Since X(t) and Y(t) are cubic functions, one would expect that F(t) is a cubic function. However, using the power basis representation of Q(t), it is not difficult to show that the cubic term is zero, ACM Transactions on Graphics, Vol. 8, No. 3, July 1989. 150 - M. C. Stone and T. D. DeRose Fig. 2. The coordinate system of Su and Liu show- ing the construction of the characteristic point R. implying that F(t) is a quadratic of the form F(t) = At2 + Bt + C where A = 3 det(a2, (YJ, B = 3 det(crl, CQ), C = det(arl, (Ye). (2) Solutions for values of t to the equation F(t) = 0, therefore, indicate the presence of inflection points. The discriminant A = B2 - 4AC therefore becomes an important quantity. Wang, Su, and Liu [ll], [12] show that the characterization of the curve can be entirely determined from A, B, and C as follows: If A = 0, then there is exactly one inflection point.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages17 Page
-
File Size-