Definitionadvanced
Mean value coordinates
Also called Floater mean value coordinates.
Floater's weights from the tangents of half angles that express a point as a convex combination of polygon vertices, used for shape preserving parameterization.
Mean value coordinates are a way to write a point inside a star-shaped polygon as a convex combination of the corners, with and . Michael Floater defined them in 2003 by a closed formula in the angles at and the distances to the corners. For a triangle they are the barycentric coordinates. For more corners there are many convex combinations that give , and these are one choice that depends smoothly on the points and is always positive when sees every corner. Floater made them as weights for the Tutte embedding of a triangle mesh: they are positive, so the map has no flipped triangle, and they reproduce a planar mesh exactly. The name comes from the mean value property of harmonic functions, which the formula imitates.
Definition
Let , , be the corners of a polygon in counterclockwise order, with indices taken mod , and let be a point in the interior of its kernel, the set of points from which every corner and edge is visible. Write , and let be the angle at in the triangle . The mean value weights and mean value coordinates of are
With , the half-angle tangent has a formula without trigonometric functions:
where is the orientation test value . The numerator is positive because is in the kernel, and the denominator is positive because .
Properties. The coordinates are defined by a formula, with no system to solve.
- Positive: gives , so and .
- Partition of unity: by the definition.
- Linear reproduction: , so for every affine function .
- Smooth: the are smooth functions of in the set where they are defined, and they do not change under a similarity of the plane.
Proof of 3. Put and let . Let be the unit vector to . The sector between and has angle , and the integral of over it is : after a rotation that puts at angle , the integral is , and is the same vector by the half-angle formulas. Because is in the kernel, the sectors cover the circle once, so their integrals add up to . Collect the terms of each : it appears in sectors and , so , that is . Divide by .
On a surface. For a vertex of a triangle mesh in 3D with neighbours in the order of its 1-ring, Floater uses the same formula with the angles of the 3D triangles at . The weights are still positive. They do not depend on a flattening of the ring, and if the ring is planar they are the planar coordinates above.
Examples and non-examples
An exact example. Take and the corners , , , , whose distances are integers. Then every quantity is rational.
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 |
The angles add up to . The weights are , for example , and the coordinates are
They are positive, they add up to 1, and exactly. Uniform weights give , so uniform weights do not reproduce this planar star, and a Tutte map with them moves .
A triangle. For the coordinates are the barycentric coordinates, because three positive numbers with sum 1 and are unique for a nondegenerate triangle.
A point outside the kernel. If is inside a non-convex polygon but does not see every corner, some triangle is clockwise. With unsigned angles the weights stay positive, but the sectors no longer cover the circle once, and the proof of property 3 fails: the result is not . Hormann and Floater (2006) use signed angles instead. Then the formula reproduces linear functions for every point that is not on the boundary, but some can be negative, and the coordinates are no longer a convex combination.
Cotangent weights are not always positive. The discrete harmonic weights of the cotangent Laplacian also reproduce linear functions, but a weight is negative when the two angles opposite an edge add up to more than . Mean value weights are positive for every star in the kernel case, which is why they suit the Tutte embedding.
Related definitions
- Barycentric coordinates. The case , and the model for all generalized barycentric coordinates: positive, a partition of unity, linear reproduction.
- Wachspress coordinates. Rational functions of for convex polygons, with weights from the areas of the triangles at the corners. They are not defined for non-convex polygons, where mean value coordinates still are.
- Discrete harmonic coordinates. The cotangent weights; they come from the minimum of the Dirichlet energy and can be negative.
- Mean value coordinates in 3D. Ju, Schaefer and Warren (2005) and Floater, Kós and Reimers (2005) gave the same idea for a point inside a closed triangle mesh, with an integral over the unit sphere. They are used to deform a shape with a cage.
- Convex combination maps. A Tutte embedding with any positive weights; mean value weights are the most common choice for mesh parameterization.
References
- Michael S. Floater, Mean value coordinates, Computer Aided Geometric Design 20(1), 2003, 19 to 27, the definition from the mean value theorem for harmonic functions, the proof that the weights are positive and reproduce linear functions, and their use for parameterization
- Kai Hormann and Michael S. Floater, Mean value coordinates for arbitrary planar polygons, ACM Transactions on Graphics 25(4), 2006, 1424 to 1441, the extension to points outside the kernel and to non-convex polygons with signed angles, where weights can be negative
- 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 comparison of uniform, harmonic, shape-preserving and mean value weights for barycentric mappings
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 VWYQAM Edit this page History Report an error Markdown