Parametric continuity

From HandWiki
Short description: Notion of smoothness for parametric curves

In computer graphics, the terms parametric continuity (Ck) and geometric continuity (Gn) were introduced by Brian Barsky, to show that the smoothness of a curve can be measured either with respect to a particular parametrization or after allowing changes in the speed with which the parameter traces out the curve.[1][2][3]

Parametric continuity

Parametric continuity (Ck) is a concept applied to parametric curves, which describes the smoothness of the curve as a function of its parameter. A (parametric) curve s:[0,1]→ℝn is said to be of class Ck if the derivatives of s up to order k exist and are continuous on [0,1], where derivatives at the end-points 0 and 1 are taken to be one-sided derivatives (from the right at 0 and from the left at 1).

As a practical application of this concept, a curve describing the motion of an object with a parameter of time has C1 continuity when its velocity varies continuously, and C2 continuity when its acceleration varies continuously. For smoother motion, such as that of a camera's path while making a film, higher orders of parametric continuity may be required.

Order of parametric continuity

Two Bézier curve segments attached in a way that is only C0 continuous
Two Bézier curve segments attached in such a way that they are C1 continuous

The various orders of parametric continuity can be described as follows:[4]

  • C0: zeroth derivative is continuous (curves are continuous)
  • C1: zeroth and first derivatives are continuous
  • C2: zeroth, first and second derivatives are continuous
  • Cn: 0-th through n-th derivatives are continuous

Geometric continuity

Curves with G1-contact (circles,line)
(1−ε2)x2−2px+y2=0, p>0 ,ε≥0
pencil of conic sections with G2-contact: p fix, ε variable
(ε=0: circle,ε=0.8: ellipse, ε=1: parabola, ε=1.2: hyperbola)

A curve or surface can be described as having Gn continuity, with n being an increasing measure of smoothness. Consider the segments on either side of a point on a curve:

  • G0: The curves touch at the join point.
  • G1: The curves also share a common tangent direction at the join point.
  • G2: The curves also share a common center of curvature at the join point.

In general, Gn continuity holds when the curves can be reparameterized so that they have Cn parametric continuity.[5][6] A reparametrization of the curve is geometrically identical to the original; only the parameter is affected.

Equivalently, two vector functions f(t) and g(t) such that f(1)=g(0) have Gn continuity at the point where they meet if they satisfy equations known as Beta-constraints. For example, the Beta-constraints for G4 continuity are:

g(1)(0)=β1f(1)(1)g(2)(0)=β12f(2)(1)+β2f(1)(1)g(3)(0)=β13f(3)(1)+3β1β2f(2)(1)+β3f(1)(1)g(4)(0)=β14f(4)(1)+6β12β2f(3)(1)+(4β1β3+3β22)f(2)(1)+β4f(1)(1)

where β2, β3, and β4 are arbitrary, but β1 is constrained to be positive.[5]: 65  In the case n=1, this reduces to f′(1)≠0 and f′(1)=kg′(0), for a scalar k>0 (i.e., the direction, but not necessarily the magnitude, of the two vectors is equal).

While it may be obvious that a curve would require G1 continuity to appear smooth, for good aesthetics, such as those aspired to in architecture and sports car design, higher levels of geometric continuity are required. For example, class A surface requires G2 or higher continuity to ensure smooth reflections in a car body.

A rounded rectangle (with ninety-degree circular arcs at the four corners) has G1 continuity, but does not have G2 continuity. The same is true for a rounded cube, with octants of a sphere at its corners and quarter-cylinders along its edges. If an editable curve with G2 continuity is required, then cubic splines are typically chosen; these curves are frequently used in industrial design.

References

  1. ↑ Barsky, Brian A. (1981). The Beta-spline: A Local Representation Based on Shape Parameters and Fundamental Geometric Measures (Ph.D.). University of Utah, Salt Lake City, Utah.
  2. ↑ Brian A. Barsky (1988). Computer Graphics and Geometric Modeling Using Beta-splines. Springer-Verlag, Heidelberg. ISBN 978-3-642-72294-3. 
  3. ↑ Richard H. Bartels; John C. Beatty; Brian A. Barsky (1987). An Introduction to Splines for Use in Computer Graphics and Geometric Modeling. Morgan Kaufmann. Chapter 13. Parametric vs. Geometric Continuity. ISBN 978-1-55860-400-1. 
  4. ↑ van de Panne, Michiel (1996). "Parametric Curves". Fall 1996 Online Notes. University of Toronto, Canada. https://www.cs.helsinki.fi/group/goa/mallinnus/curves/curves.html. 
  5. ↑ 5.0 5.1 Barsky, Brian A.; DeRose, Tony D. (1989). "Geometric Continuity of Parametric Curves: Three Equivalent Characterizations". IEEE Computer Graphics and Applications 9 (6): 60–68. doi:10.1109/38.41470. 
  6. ↑ Hartmann, Erich (2003). "Geometry and Algorithms for Computer Aided Design". Technische Universität Darmstadt. p. 55. https://www2.mathematik.tu-darmstadt.de/~ehartmann/cdgen0104.pdf#page=55.