Conceptcore
Generalized barycentric coordinates
Also called polygon barycentric coordinates.
Weights of the vertices of a polygon or polyhedron that reproduce linear functions and sum to one, used to interpolate and to deform with cages.
Generalized barycentric coordinates extend the barycentric coordinates of a triangle to polygons with any number of vertices, and to polyhedra. For a polygon with the vertices , they are functions on the polygon with and at every point . A triangle has exactly one such set, the usual barycentric coordinates; a polygon with vertices has many, and each kind adds properties such as nonnegativity or smoothness. They interpolate data given at the vertices, , and they deform shapes inside a cage, . Michael Floater (2015) surveys them.
In plain words
Inside a triangle, every point is a unique mix of the three corners, with weights that add up to 1. Inside a square or any other polygon there are more corners than needed, so a point can be mixed from the corners in many ways. Generalized barycentric coordinates are rules that pick one mix for every point, smoothly over the whole polygon. Each rule must give back the point itself when it mixes the corner positions. Good rules also keep the weights between 0 and 1, so that each corner only pulls a point toward itself. With such a rule you can blend colors, heights or positions given at the corners over the whole polygon.
The idea
The two defining properties are the partition of unity and the linear precision . Together they say that interpolation reproduces every linear function : , because . So a cage deformation with such coordinates reproduces every affine map of the cage.
Other properties that a kind may have:
- Nonnegativity: . Then each lies between the smallest and the largest .
- Lagrange property: if and 0 otherwise, so interpolation matches the data at the vertices.
- Linear on edges: on the edge from to only and are nonzero, and they are linear. Then the interpolant on an edge depends only on the data at its two ends, so neighbouring polygons join continuously.
- Smoothness inside the polygon, and invariance under similarities of the polygon.
For a convex polygon, nonnegativity and linear precision already imply the Lagrange property and the linearity on edges. A vertex of a convex polygon is an extreme point, so the only way to write it as a convex combination of the vertices puts all the weight on . A point on an edge lies on a supporting line of the polygon, so a convex combination of the vertices that gives it can use only the two vertices on that line, with the weights fixed by the position on the edge.
At one point of a polygon with vertices, the two properties are three linear equations in unknowns, so the possible weights form an affine space of dimension . For this is one point, which is why the triangle case is unique. For there is a one-parameter family at each point, and the kinds below pick different members of it.
Examples
Wachspress coordinates. For a convex polygon, Wachspress coordinates are rational functions built from the areas of triangles formed by and the vertices. They are positive inside, have the Lagrange property and are linear on edges. They come from Eugene Wachspress's work on rational finite elements, and they are not defined well for polygons that are not convex.
Mean value coordinates. Floater's mean value coordinates (2003) use the tangents of half angles at : , normalized to sum 1. They are positive inside convex polygons and in the kernel of star-shaped ones, and they are defined for any simple polygon with signed angles (Hormann and Floater 2006), where they can be negative. In the L-shaped polygon with the vertices , , , , , , the point has the mean value coordinate for the vertex , which it sees from behind the reflex corner.
Harmonic coordinates. Harmonic coordinates solve the Laplace equation inside the polygon with data that are 1 at one vertex, 0 at the others and linear on edges. They are nonnegative for every simple polygon, convex or not: at the same point of the L shape, the coordinate of is about . They have no closed form.
Bilinear coordinates. On a rectangle, the bilinear weights , , , , with the scaled position, are generalized barycentric coordinates; on a rectangle the Wachspress, harmonic and bilinear coordinates all agree with them. At the center of the unit square all four are .
Green coordinates. Green coordinates also use the edge normals, . They are not generalized barycentric coordinates in the strict sense, because the vertex weights alone do not reproduce .
Where it is used
- Cage-based deformation. Cage-based deformation binds each point of a model to a cage by its coordinates and moves it with the cage vertices.
- Mesh parameterization. Floater's shape-preserving parameterization writes each inner vertex as a convex combination of its neighbours, with weights such as mean value coordinates, and solves a linear system.
- Interpolation on polygons. Colors, normals or heights given at the vertices of polygons are blended over each polygon, as barycentric interpolation does on triangles.
- Polygonal finite elements. Coordinates that are linear on edges are shape functions of polygonal elements, which extend the finite element method to meshes of polygons.
- Image warping and morphing. A polygon drawn around an image region warps the region when its vertices move.
References
- Michael S. Floater, Generalized barycentric coordinates and applications, Acta Numerica 24, 161-214, 2015, the whole survey (the definition, the properties of nonnegative coordinates, Wachspress, mean value and harmonic coordinates, and the applications)
- Michael S. Floater, Mean value coordinates, Computer Aided Geometric Design 20(1), 19-27, 2003, the whole paper (the mean value coordinates of a star-shaped polygon)
- Kai Hormann and Michael S. Floater, Mean value coordinates for arbitrary planar polygons, ACM Transactions on Graphics 25(4), 1424-1441, 2006, the whole paper (mean value coordinates for any simple polygon, which can be negative)
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 | W4 complete |
|
Tag P4XP7N Edit this page History Report an error Markdown