Problemadvanced
Geodesics on parametric surfaces
Also called parametric geodesic computation.
Find shortest curves between points on a parametric surface by solving the geodesic equations as an initial or boundary value problem, for design and fibre layup.
Computing geodesics on a parametric surface means finding curves whose acceleration is normal to the surface, either from a start point and a start direction (an initial value problem) or between two given points (a boundary value problem). Shortest paths on a smooth surface are geodesics, so the boundary value problem is how a CAD system measures distances on a surface and lays out paths of least length. The geodesic equations are a system of two second order ordinary differential equations whose coefficients are the Christoffel symbols of the first fundamental form.
In plain words
On a flat sheet the shortest way between two points is a straight line. On a curved surface the shortest way bends, but only as much as the surface forces it to: an ant that walks straight ahead, never turning left or right, follows such a curve. These curves are the geodesics. There are two tasks. In the first, the ant knows where it starts and in which direction it walks, and we trace its path step by step. In the second, we know the start and the end, and we must find the right start direction, usually by guessing it, tracing the path, seeing where it ends, and correcting the guess. The second task can have many answers: on a cylinder a path can wind around any number of times before it reaches the end point.
Definition
Input. A regular parametric surface of class on a domain , with first form coefficients . This page uses the unit normal , and for this ; neither choice affects geodesics.
Geodesic. A curve is a geodesic if the tangential part of is zero for every , that is, and . A geodesic has constant speed, because as is tangent.
The equations. Differentiate the definitions , , :
- , , , ;
- , so ;
- , so .
Now . Take the dot product with and with and set both to zero:
The matrix is the first form, which is invertible, so this is equivalent to
where the Christoffel symbols are
They depend only on and their first derivatives, so geodesics are intrinsic: a bending of the surface that keeps lengths keeps its geodesics. As a first order system in , the right side is for a surface, so through every point and every tangent vector passes exactly one geodesic.
The problems.
- Initial value problem. Given and a tangent vector , find the geodesic with and , up to a given length or until it leaves .
- Boundary value problem. Given two points and , find a geodesic with and , and usually the shortest one.
Variants
- Shortest path versus geodesic. A shortest curve between two interior points that stays in the interior of is a geodesic, and a geodesic is shortest between any two of its points that are close enough (do Carmo, Section 4-6). A long geodesic need not be shortest, and a boundary value problem can have several geodesic solutions, so the shortest one is a global optimum among them.
- Bounded patches. On a trimmed patch or a patch with a hole, the shortest path between two points can run along the boundary for a while. That part is not a geodesic, and the equations above do not describe it.
- Geodesic distance field. Find the distance from one point to all points of the surface. On meshes this is the discrete geodesic problem, solved exactly by the MMP algorithm or approximately by the fast marching method for the eikonal equation.
- Geodesic offsets. Curves at constant geodesic distance from a given curve on the surface, traced along geodesics that start orthogonal to it.
- Developable surfaces. A developable surface is isometric to a planar region, so its geodesics are the images of straight lines of the development (Patrikalakis and Maekawa, Section 10.8).
Examples
The cylinder: infinitely many geodesics between two points
Take on all of . Then and are constant, all Christoffel symbols vanish, and the equations are . So the geodesics are exactly the curves , : helices, circles () and rulings ().
- From to , . is , and is for every integer . For each , the curve , , is a geodesic from to , and every geodesic from to on has this form. So there are infinitely many, with lengths . The shortest is the ruling, , of length .
- From to . Now , and the geodesics have lengths . The two helices and both have the least length ; they wind around the cylinder in opposite senses. Both are shortest paths: the map preserves length, any curve from to is the image of a plane curve from to some , and that plane curve is at least as long as the segment, .
So a shortest path need not be unique, and a solver that returns one geodesic must say which one it returns.
The sphere
The geodesics of a sphere are its great circles. Two points that are not antipodal lie on exactly one great circle, which gives two geodesic arcs, a short one and a long one, and more geodesics that wind around it several times. Two antipodal points lie on infinitely many great circles, and every half great circle between them is a shortest path of length .
A paraboloid of revolution, by shooting
Take for , so , , . The only nonzero Christoffel symbols are , and , and the equations are
The second one says , so is constant along every geodesic. This is Clairaut's relation for this surface.
Join to . Shooting on the unknown start vector , with classical Runge-Kutta 4 at 2000 steps on and Newton's method with a finite difference Jacobian, starting from , reaches an end point error below after 4 Newton steps. The result is , and the length is . The geodesic dips toward the axis to . Clairaut's relation predicts this value: at the lowest point , so the speed is , and . For comparison, the arc of the circle from to has length , and the straight chord in space has length , a lower bound for every curve.
Known algorithms
- Initial value problem. Write the equations as a first order system in and integrate with a Runge-Kutta method, with step size control. The speed is a conserved quantity, so its drift measures the integration error, and a program can rescale to fix it. The integration must stop when leaves , or move to the neighbouring patch.
- Shooting. The shooting method treats the start vector as unknown, integrates the initial value problem on , and applies Newton's method to the two equations (Patrikalakis and Maekawa, Section 10.3.2). The Jacobian is the derivative of the end point with respect to the start vector. It is singular exactly when is conjugate to along the geodesic (do Carmo, Section 5-5), for example at the antipode on a sphere, and there Newton's method fails.
- Relaxation. Discretize into steps, replace the derivatives by finite differences, and solve the resulting nonlinear system in the interior unknowns with Newton's method, whose Jacobian is block tridiagonal (Patrikalakis and Maekawa, Section 10.3.3). This is a boundary value problem solver, and it is more robust than shooting when the geodesic is long.
- Initial guesses. Both methods need a start near a solution. Good starts are a straight segment in the parameter domain, or a shortest path on a mesh of the surface computed by an algorithm for the discrete geodesic problem (Patrikalakis and Maekawa, Section 10.4). The start decides which of several geodesics the method finds.
Bounds
- Existence. On a complete connected surface, every two points are joined by a shortest geodesic (Hopf and Rinow; do Carmo, Section 5-3). A patch on a bounded domain is not complete, and a shortest path may touch the boundary instead.
- Number of solutions. There is no bound in general: the cylinder example above has infinitely many geodesics between two points.
- Accuracy. For a smooth surface, classical Runge-Kutta 4 with equal steps has global error in the initial value problem. Newton's method in shooting or relaxation converges quadratically near a solution whose Jacobian is nonsingular, that is, when is not conjugate to .
- Exact algorithms. For a smooth parametric surface, geodesics are in general transcendental curves, and no finite exact algorithm computes them. Exact combinatorial algorithms exist only for polyhedral surfaces, on the discrete geodesic problem page.
Reductions
- Boundary value problem to root finding. Shooting reduces the boundary value problem to two nonlinear equations in two unknowns, solved by Newton's method for systems.
- Developable surface to the plane. On a developable patch whose development is one to one, unroll the patch to the plane, join the two images by a segment, and map the segment back. When the developed region is not convex, the shortest path in it can be a polygonal path that bends at boundary points, not a segment.
- Smooth surface to mesh. Tessellate the surface and solve the discrete problem. On a fine mesh that is close to the surface in position and in normals, the result is close to the smooth geodesic distance, and it serves as an initial guess for the smooth solvers.
Applications
- Fibre placement and composite layup. A geodesic has zero geodesic curvature, so a fibre tow laid along it needs no bending in the plane of the tow. Fibre placement and filament winding use geodesic paths on the mould surface for this reason.
- Distances on surfaces. Geodesic distance gives the length of a seam, a weld or a cable that must lie on a surface, and geodesic offsets give curves at constant distance on the surface.
- Ship hulls and sheet metal. Bending a flat plate without stretching is an isometry, so a straight edge of the flat plate becomes a geodesic of the bent plate.
- Interrogation. Geodesics, with lines of curvature, are a family of curves that CAD systems compute on a surface to show its intrinsic shape.
References
- Nicholas M. Patrikalakis and Takashi Maekawa, Shape Interrogation for Computer Aided Design and Manufacturing, Springer, 2002, Chapter 10, Geodesics (Section 10.2.1, geodesic equations on parametric surfaces; Section 10.3.2, the shooting method; Section 10.3.3, the relaxation method; Section 10.4, initial approximations; Section 10.8, geodesics on developable surfaces)
- Manfredo P. do Carmo, Differential Geometry of Curves and Surfaces, Prentice-Hall, 1976, Section 4-3 (Christoffel symbols); Section 4-4 (geodesics and their differential equations); Section 4-6 (geodesics minimize arc length locally); Section 5-3 (complete surfaces, the theorem of Hopf and Rinow); Section 5-5 (Jacobi fields and conjugate points)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag TCCNNQ Edit this page History Report an error Markdown