Problemcore
Mesh parameterization
Also called surface parameterization, UV unwrapping.
Map a mesh with disk topology one to one onto a region of the plane with low distortion of angles or areas, for texture, remeshing and fitting.
Mesh parameterization is the problem of mapping a triangle mesh in space onto a region of the plane, one to one, so that the flat image looks as much as possible like the surface: angles, lengths or areas change little. The map gives each vertex a point in the plane and is linear on each triangle. A flat map that keeps all lengths exists only for a surface that can be unrolled without stretching, such as a cylinder or a cone, so in general the problem is to choose which distortion to accept. The input must have the topology of a disk; a closed surface or a surface with handles is first cut along seams or split into charts by mesh segmentation. The problem is the basis of texture mapping, of remeshing and of fitting spline surfaces to meshes.
In plain words
Think of peeling an orange and pressing the peel flat on a table. The peel tears or stretches, because a piece of a sphere cannot lie flat without changing. A paper cylinder, on the other hand, unrolls perfectly once you cut it along one line.
A mesh is a surface made of small triangles. Parameterizing it means laying all its triangles flat in the plane, edge to edge, with no overlap. Each triangle may change its shape a little. The goal is to keep the change small, for example to keep the angles of each triangle, or its area.
The flat picture is then used to put an image on the surface, or to lay a regular grid over it.
Definition
Input. A triangle mesh with vertices in , which is a connected oriented manifold mesh with one boundary loop and the topology of a disk, so its Euler characteristic is 1. The faces are oriented so that the outward normal follows the right-hand rule.
Output. A point for each vertex. The map is the piecewise linear map that sends each triangle to the triangle .
Conditions.
- Local injectivity. Each image triangle keeps its orientation: for each face , by the orientation test. A triangle with a negative sign is flipped.
- Global injectivity. No two image triangles overlap. For a locally injective map this holds if and only if the image of the boundary loop does not cross itself.
- Boundary. Either the image of the boundary is given (a fixed boundary, often a convex polygon), or it is part of the output (a free boundary).
Checking the conditions. Local injectivity is a sign test per triangle. With floating point coordinates the sign of ORIENT2D can be wrong for nearly degenerate image triangles, through catastrophic cancellation, and exact predicates make the check reliable. Very thin image triangles are close to flips, so the check is part of the robustness problem of geometry, not a formality.
Distortion. On a triangle , has a constant Jacobian in an orthonormal frame of the plane of , with singular values . The map is
- isometric on if (lengths are kept),
- conformal if (angles are kept),
- equiareal or authalic if (areas are kept).
A map is isometric if and only if it is conformal and equiareal. A distortion energy is a sum over the triangles, weighted by area, of a function of and that is smallest at the ideal; for example for angles, or for lengths. The problem is to minimize a chosen energy subject to the conditions.
What is possible. A piecewise linear isometry onto the plane exists for a disk mesh if and only if the angles of the triangles around each inner vertex sum to exactly , that is, the discrete Gaussian curvature is 0 at every inner vertex, and the resulting unfolding does not overlap. By the discrete Gauss-Bonnet theorem, a mesh with curvature cannot be flattened without distortion, and the total curvature tells how much must be absorbed.
Variants
- Fixed or free boundary. A fixed convex boundary makes injectivity easier to guarantee; a free boundary lowers the distortion.
- Conformal, authalic or isometric. The choice of energy; isometric energies balance angles against areas.
- Bijective. The map must be globally injective, not only free of flipped triangles.
- Seamless and global. A closed surface or one with handles is cut into a disk, and the maps on the two sides of each cut must agree up to a rotation by a multiple of and an integer translation, so that a grid in the plane closes over the seams. This is the variant behind quad meshing.
- Cone singularities. Curvature is gathered into a few vertices, the cones, and the rest of the map is flat.
- Volume parameterization. A tetrahedral mesh is mapped into space with low distortion, for hexahedral meshing.
Examples
A flat mesh. If all vertices lie in a plane, the identity is an isometry. A good method should return a copy of the input up to a rotation, a translation and, for conformal methods, a scale.
A square pyramid. Take the base square , , , as the boundary loop and the apex as the one inner vertex, with four triangles. Each triangle has base 2 and height , so its angle at the apex is , and the four sum to , short of by . So no isometry exists. Mapping the base to the same square in the plane and the apex to gives four flat triangles of base 2 and height 1. On each, the map keeps the base direction and shrinks the height direction from to 1, so , : the angles change, the ratio is , and each area shrinks from to 1.
An open cylinder. A tube has two boundary loops and is not a disk. Its curvature is 0, so after one cut from one loop to the other it unrolls onto a rectangle without distortion.
A sphere. A closed mesh has no boundary and Euler characteristic 2. It must be cut, and since its total curvature is , every flattening of the cut sphere has distortion; the cuts decide where it goes.
Known algorithms
| method | boundary | what it guarantees | cost |
|---|---|---|---|
| Tutte embedding, with uniform or other positive weights | fixed, convex | a bijection onto the convex polygon (Tutte 1963, Floater 2003); high distortion near the boundary | one sparse linear solve |
| Floater mean value coordinates as the weights of a Tutte map | fixed, convex | a bijection, and a flat mesh is reproduced exactly | one sparse linear solve |
| least squares conformal maps | free, two pinned vertices | the minimum of a conformal energy; flipped triangles and overlaps are possible | one sparse linear solve |
| angle-based flattening | free | valid angles for every triangle, so no flipped triangles; overlaps of the boundary are possible | nonlinear, Newton iterations |
| mixed-integer quadrangulation | seamless, with cones | a map aligned to a cross field whose seams and cones are integer; flips are possible | a sequence of sparse solves with greedy rounding |
Other known methods minimize isometric energies by local and global steps or by Newton iterations with a barrier against flips, and some solve for conformal maps through the boundary curvature. These are outside the pages of this site.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| Angle-based flattening | O(n) layout | O(n^2) extra | deterministicnot exactiterative | 1 language |
| As-rigid-as-possible parameterization | O(n^3 + k n^2) worst | O(n^2) extra | deterministicnot exactiterative | 1 language |
| Boundary first flattening | O(n^3) worst | O(n^2) extra | deterministicnot exactiterative | 1 language |
| Discrete conformal maps by conformal equivalence | O(k n^3) worst | O(n^2) extra | deterministicnot exactiterative | 1 language |
| Least squares conformal maps | O(n^3) worst | O(n^2) extra | deterministicnot exactiterative | 1 language |
| Tutte embedding | O(n^3) worst | O(n^2) extra | deterministicexactiterative | 1 language |
Bounds
- Proved. With a fixed convex boundary and positive weights in each row, the Tutte map is a bijection; this is the only general guarantee of injectivity with a linear solve. A linear method needs time to write its output, and the sparse systems of the linear methods have the graph of the mesh, which is planar for a disk, so nested dissection solves them in time.
- Impossibility. An isometry exists only for zero discrete curvature at every inner vertex, as the pyramid shows. For a free boundary, the energies that measure lengths are not convex, and the set of locally injective maps is not convex either, so the methods that search over it have no general guarantee of the global optimum.
- Measured. The distortion of a method on a given mesh is measured, not proved, and comparisons between methods are made on collections of meshes.
Reductions
- From a closed surface. A closed mesh or one with handles is reduced to disks by cutting it along a cut graph or by mesh segmentation into charts.
- To a linear system. Fixed-boundary convex combination maps reduce to a sparse linear system with the matrix of a weighted graph Laplacian, a discrete form of the Poisson equation with Dirichlet boundary values.
- To a least squares problem. Conformal maps with a free boundary reduce to a least squares problem once two vertices are pinned.
- Into quad meshing. A seamless map with integer seams turns the grid of the plane into a quad mesh of the surface.
Applications
- Texture mapping. The flat image is the texture atlas: a picture drawn in the plane is carried onto the surface.
- Remeshing. A regular grid or a good triangulation in the plane is mapped back to give a new mesh of the surface, as in quad meshing.
- Surface fitting. Spline and NURBS patches are fitted to scanned meshes over a parameter domain.
- Detail transfer and morphing. Two surfaces mapped to the same domain get a correspondence between them.
References
- Michael S. Floater and Kai Hormann, Surface parameterization, a tutorial and survey, in Advances in Multiresolution for Geometric Modelling, Springer, 2005, 157 to 186, the definitions of isometric, conformal and equiareal maps by the singular values of the Jacobian, the theorem of Tutte and Floater on convex combination maps, and the survey of methods
- Alla Sheffer, Emil Praun and Kenneth Rose, Mesh parameterization methods and their applications, Foundations and Trends in Computer Graphics and Vision 2(2), 2006, 105 to 171, the distortion measures, fixed and free boundaries, cutting and charts, and the applications
- Mario Botsch, Leif Kobbelt, Mark Pauly, Pierre Alliez and Bruno Lévy, Polygon Mesh Processing, AK Peters, 2010, Chapter 5, Parametrization (the problem statement, the distortion of a piecewise linear map, and the families of methods)
Where this leads
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 2R1FZD Edit this page History Report an error Markdown