Algorithm Search⌘K

Definitioncore

Cotangent Laplacian

Also called cotan Laplacian, discrete Laplace-Beltrami operator.

The discrete Laplace-Beltrami operator of a triangle mesh whose edge weights are (cot a + cot b)/2 for the two angles opposite the edge, from linear finite elements.

The cotangent Laplacian is the matrix that takes the place of the Laplace-Beltrami operator on a triangle mesh. For a function uu with one value per vertex, it gives at vertex ii the sum of wij(uj−ui)w_{ij}(u_j - u_i) over the neighbours jj, where the weight of the edge ijij is half the sum of the cotangents of the two angles opposite to it. It is the stiffness matrix of linear finite elements on the mesh, so the quadratic form of the matrix is the Dirichlet energy of the piecewise linear function with the values uu. Unlike the uniform graph Laplacian, it depends on the shape of the triangles, and this is why smoothing, fairing, parameterization and geodesic methods use it.

Definition

Let MM be a manifold triangle mesh with vertex positions xi∈R3x_i \in \mathbb{R}^3 and no degenerate triangle. For an edge ijij with two faces, let αij\alpha_{ij} and βij\beta_{ij} be the angles opposite to the edge in these faces. For a border edge, there is only αij\alpha_{ij}, and we set cot⁡βij=0\cot \beta_{ij} = 0. The cotangent weight of the edge is

wij=12(cot⁡αij+cot⁡βij).w_{ij} = \tfrac{1}{2}\left(\cot \alpha_{ij} + \cot \beta_{ij}\right).

The cotangent Laplacian is the linear map LL on vertex functions with

(Lu)i=∑j∈N(i)wij (uj−ui),(Lu)_i = \sum_{j \in N(i)} w_{ij}\,(u_j - u_i),

where N(i)N(i) is the set of neighbours of ii. As a matrix, L=−CL = -C, where the stiffness matrix CC has Cij=−wijC_{ij} = -w_{ij} for each edge, Cii=∑jwijC_{ii} = \sum_j w_{ij}, and zeros elsewhere. For a function with values in R3\mathbb{R}^3, such as the positions xx, LL acts on each coordinate.

Where the weights come from. Let φi\varphi_i be the hat function of vertex ii: it is linear on each triangle, 1 at ii and 0 at the other vertices. The piecewise linear interpolant of uu is u^=∑iuiφi\hat u = \sum_i u_i \varphi_i. In a triangle TT with area ATA_T and angle θk\theta_k at its vertex kk, the gradient of φi\varphi_i is perpendicular to the edge opposite ii and has length 1/hi1/h_i, where hih_i is the height from ii. For the two other vertices i,ji, j of TT, this gives ∇φi⋅∇φj=−cot⁡θk/(2AT)\nabla \varphi_i \cdot \nabla \varphi_j = -\cot \theta_k / (2A_T), so

∫T∇φi⋅∇φj dA=−12cot⁡θk.\int_T \nabla \varphi_i \cdot \nabla \varphi_j \, dA = -\tfrac{1}{2} \cot \theta_k .

Summing over the one or two triangles of the edge gives ∫M∇φi⋅∇φj dA=−wij=Cij\int_M \nabla \varphi_i \cdot \nabla \varphi_j \, dA = -w_{ij} = C_{ij}, and since ∑jφj=1\sum_j \varphi_j = 1, the diagonal is Cii=−∑j≠iCijC_{ii} = -\sum_{j \ne i} C_{ij}. Hence the Dirichlet energy of u^\hat u is

E(u)=12∫M∣∇u^∣2 dA=12 uTCu=12∑ij∈Ewij(ui−uj)2,E(u) = \tfrac{1}{2} \int_M |\nabla \hat u|^2 \, dA = \tfrac{1}{2}\, u^{\mathsf T} C u = \tfrac{1}{2} \sum_{ij \in E} w_{ij} (u_i - u_j)^2,

and (Lu)i=−∂E/∂ui(Lu)_i = -\partial E / \partial u_i. This is the formula of Pinkall and Polthier (1993). The same matrix is the stiffness matrix of the finite element method with linear elements for the Poisson equation, as a Galerkin method with the hat functions.

The weights from the edge lengths. In a triangle with side lengths ℓi,ℓj,ℓk\ell_i, \ell_j, \ell_k and area ATA_T, the law of cosines gives cot⁡θk=(ℓi2+ℓj2−ℓk2)/(4AT)\cot \theta_k = (\ell_i^2 + \ell_j^2 - \ell_k^2) / (4 A_T), where ℓk\ell_k is the side opposite θk\theta_k. So LL depends only on the edge lengths, not on how the mesh sits in space. It is an intrinsic operator, like the Laplace-Beltrami operator of a smooth surface.

Normalized forms. (Lu)i(Lu)_i is an integral of the Laplacian over a region around vertex ii, not a pointwise value. The pointwise estimate divides by an area AiA_i of vertex ii:

(Δu)i=1Ai (Lu)i.(\Delta u)_i = \frac{1}{A_i}\,(Lu)_i .

Two areas are common. The barycentric area is one third of the area of the triangles at ii. The mixed Voronoi area of Meyer, Desbrun, Schröder and Barr (2003) adds, for each triangle at ii that has no obtuse angle, the part of its Voronoi cell, 18(ℓij2cot⁡θk+ℓik2cot⁡θj)\frac{1}{8}(\ell_{ij}^2 \cot \theta_k + \ell_{ik}^2 \cot \theta_j), and for an obtuse triangle, half its area if the obtuse angle is at ii and a quarter otherwise. With the diagonal mass matrix D=diag⁡(Ai)D = \operatorname{diag}(A_i), the operator is D−1LD^{-1}L, and problems such as implicit fairing and the heat method use the pair (D,C)(D, C) in the symmetric form (D+tC) u=D b(D + tC)\,u = D\,b.

Mean curvature. On a smooth surface, the Laplace-Beltrami operator of the position is Δx=−2Hn\Delta x = -2Hn, where HH is the mean curvature and nn the outward unit normal, so that a sphere of radius rr has H=1/rH = 1/r. On a mesh, 1Ai(Lx)i\frac{1}{A_i}(Lx)_i is the discrete mean curvature normal at vertex ii, and its length divided by 2 is an estimate of ∣H∣|H|.

Properties. These follow from the formula for EE.

  • CC is symmetric and each row sums to 0, so C1=0C\mathbf{1} = 0.
  • CC is positive semidefinite, since uTCu=∫∣∇u^∣2≥0u^{\mathsf T} C u = \int |\nabla \hat u|^2 \ge 0. The kernel is the functions that are constant on each connected component, since ∇u^=0\nabla \hat u = 0 on every triangle makes u^\hat u constant across shared edges. So LL is negative semidefinite, and its eigenvalues are ≤0\le 0, as for the smooth operator.
  • Linear precision. If the mesh lies in a plane and uu is a linear function, then (Lu)i=0(Lu)_i = 0 at every inner vertex ii. Indeed (Cu)i=∫∇φi⋅g dA(Cu)_i = \int \nabla \varphi_i \cdot g \, dA for the constant gradient gg of uu, and this is g⋅∫∇φi dA=0g \cdot \int \nabla \varphi_i \, dA = 0, because φi\varphi_i vanishes on the border of its star. So Lx=0L x = 0 at inner vertices of a flat mesh: a flat mesh has zero mean curvature, whatever the shape of its triangles.
  • Sign of a weight. Since cot⁡α+cot⁡β=sin⁡(α+β)/(sin⁡αsin⁡β)\cot \alpha + \cot \beta = \sin(\alpha + \beta) / (\sin \alpha \sin \beta), an inner edge has wij≥0w_{ij} \ge 0 if and only if αij+βij≤π\alpha_{ij} + \beta_{ij} \le \pi, which is the local Delaunay criterion for the two triangles of the edge. A mesh with obtuse angles can have negative weights.

Conventions. Texts differ in the factor 12\frac{1}{2}, in the sign (some call CC the Laplacian), and in the area. The page uses L=−CL = -C with the factor 12\frac{1}{2}, so that LL is negative semidefinite and 12uTCu\frac{1}{2}u^{\mathsf T} C u is the Dirichlet energy. Check these three choices before you mix formulas from two sources.

Examples and non-examples

One right triangle. Take the vertices 0=(0,0)0 = (0, 0), 1=(1,0)1 = (1, 0), 2=(0,1)2 = (0, 1). The angles are 90°90° at 0 and 45°45° at 1 and 2, so w01=12cot⁡45°=12w_{01} = \frac{1}{2}\cot 45° = \frac{1}{2}, w02=12w_{02} = \frac{1}{2}, and w12=12cot⁡90°=0w_{12} = \frac{1}{2}\cot 90° = 0. For u=xu = x, with values 0,1,00, 1, 0, the edge sum is E=12⋅12(0−1)2=14E = \frac{1}{2} \cdot \frac{1}{2} (0 - 1)^2 = \frac{1}{4}. The direct integral is 12⋅\frac{1}{2} \cdot area ⋅∣∇u∣2=12⋅12⋅1=14\cdot |\nabla u|^2 = \frac{1}{2} \cdot \frac{1}{2} \cdot 1 = \frac{1}{4}, the same.

A square with a center vertex. The unit square with corners (0,0),(1,0),(1,1),(0,1)(0,0), (1,0), (1,1), (0,1) and center c=(12,12)c = (\frac{1}{2}, \frac{1}{2}), cut into four right triangles with the right angle at cc. Each spoke from cc to a corner has two opposite angles of 45°45°, so its weight is 12(1+1)=1\frac{1}{2}(1 + 1) = 1. Each side of the square is a border edge with the opposite angle 90°90°, so its weight is 0. For a linear uu, (Lu)c(Lu)_c is the sum of the four corner values minus 4uc4u_c, which is 0, as linear precision says. For u=x2+y2u = x^2 + y^2, with uc=12u_c = \frac{1}{2} and the corner values 0,1,2,10, 1, 2, 1, we get (Lu)c=2(Lu)_c = 2. The true Laplacian is Δu=4\Delta u = 4. The mixed Voronoi area of cc is 4⋅18(12+12)=124 \cdot \frac{1}{8}(\frac{1}{2} + \frac{1}{2}) = \frac{1}{2}, which gives 2/12=42 / \frac{1}{2} = 4, the exact value. The barycentric area is 4⋅14⋅13=134 \cdot \frac{1}{4} \cdot \frac{1}{3} = \frac{1}{3}, which gives 66. So the choice of area matters, even on a regular mesh.

The octahedron. Take the vertices (±1,0,0)(\pm 1, 0, 0), (0,±1,0)(0, \pm 1, 0), (0,0,±1)(0, 0, \pm 1), which lie on the unit sphere. Each face is equilateral, so every weight is 12(2cot⁡60°)=1/3\frac{1}{2}(2 \cot 60°) = 1/\sqrt{3}. At the top vertex t=(0,0,1)t = (0, 0, 1), the four neighbours give ∑j(xj−t)=(0,0,−4)\sum_j (x_j - t) = (0, 0, -4), so (Lx)t=(0,0,−4/3)(Lx)_t = (0, 0, -4/\sqrt{3}). The barycentric area of tt is 4⋅13⋅32=2/34 \cdot \frac{1}{3} \cdot \frac{\sqrt 3}{2} = 2/\sqrt{3}. The mean curvature normal is (0,0,−2)(0, 0, -2), that is, −2Hn-2Hn with H=1H = 1 and n=(0,0,1)n = (0, 0, 1): the curvature of the unit sphere, even on this coarse mesh.

A negative weight. Take two triangles in the plane on the edge from (0,0)(0, 0) to (2,0)(2, 0), with the apexes (1,14)(1, \frac{1}{4}) and (1,−14)(1, -\frac{1}{4}). At each apex, the vectors to the ends of the edge are (∓1,−14)(\mp 1, -\frac{1}{4}), with dot product −1516-\frac{15}{16} and cross product 12\frac{1}{2}, so the cotangent is −158-\frac{15}{8}. The angle is about 151.9°151.9°, and the two angles sum to more than π\pi. The weight is w=−158w = -\frac{15}{8}. The quadrilateral is convex, and the edge flip to the other diagonal gives a Delaunay pair with nonnegative weights. With negative weights, (Lu)i=0(Lu)_i = 0 no longer makes uiu_i an average of its neighbours, so the discrete maximum principle can fail.

Non-example: the uniform Laplacian. The graph Laplacian of the mesh, with wij=1w_{ij} = 1 for each edge, depends only on the connectivity. It is what Laplacian smoothing uses in its simplest form. It has no linear precision: at the origin with the neighbours (1,0)(1, 0), (1,1)(1, 1), (0,1)(0, 1), (−1,0)(-1, 0), (0,−1)(0, -1) in this order, a fan of five triangles in the plane, the uniform Laplacian of u=xu = x is 1+1+0−1+0=1≠01 + 1 + 0 - 1 + 0 = 1 \ne 0, so smoothing with it moves vertices inside a flat region. The cotangent Laplacian of u=xu = x is 0 there.

Non-example: mean value weights. The weights of Floater's mean value coordinates are always positive and reproduce linear functions in the plane, but they are not symmetric, wij≠wjiw_{ij} \ne w_{ji}, so they do not come from an energy and do not give a symmetric matrix.

  • Laplacian matrix: the combinatorial Laplacian of a graph, with weights 1 or with given edge weights. The cotangent Laplacian is the weighted Laplacian of the edge graph with the cotangent weights, which can be negative.
  • Discrete Gaussian curvature: the angle defect, the discrete form of KK. The cotangent Laplacian of the position gives the discrete form of HH, so the two together estimate the principal curvatures.
  • Surface curvature: the smooth KK and HH that the discrete operators estimate.
  • Positive definite matrix: CC is positive semidefinite, and D+tCD + tC is positive definite for t>0t > 0, so it can be solved with the conjugate gradient method or a Cholesky decomposition.
  • Local Delaunay criterion: the condition α+β≤π\alpha + \beta \le \pi under which an inner weight is nonnegative.
  • Heat equation: ∂u/∂t=Δu\partial u / \partial t = \Delta u on a mesh becomes D u˙=LuD\,\dot u = L u, the system of implicit fairing and of the heat method.

References

  1. Ulrich Pinkall and Konrad Polthier, Computing discrete minimal surfaces and their conjugates, Experimental Mathematics 2(1), 1993, 15 to 36, the Dirichlet energy of a piecewise linear map written as a sum over the edges with the cotangents of the opposite angles
  2. Mark Meyer, Mathieu Desbrun, Peter Schröder and Alan H. Barr, Discrete differential-geometry operators for triangulated 2-manifolds, in Visualization and Mathematics III (H.-C. Hege and K. Polthier, eds.), Springer, 2003, 35 to 57, the mean curvature normal operator with the cotangent weights, and the mixed Voronoi area of a vertex
  3. Mario Botsch, Leif Kobbelt, Mark Pauly, Pierre Alliez and Bruno Lévy, Polygon Mesh Processing, AK Peters, 2010, Chapter 3, Differential Geometry (the discrete Laplace-Beltrami operators, uniform and cotangent, and the local averaging regions)

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/ACV5AY/text.yaml