Shapes & spaces

Triangle mesh heat kernel signature calculator across diffusion times

Calculate the heat kernel signature at mesh vertices using the complete cotangent generalized eigensystem and lumped vertex areas.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Calculate the heat kernel signature at mesh vertices using the complete cotangent generalized eigensystem and lumped vertex areas.

THE FORMULAK_t(i,i) = sum_j exp(-lambda_j t) phi_j(i)^2, with Phi^T M Phi = I.

A worked example

For the unit right-triangle mesh, the lumped masses are 1/6 and the eigenvalues are 0, 3 and 9. At time 1, HKS at vertex zero is 2 + 4 exp(-9), approximately 2.000493639.

Good to know

Connected orientable manifold triangle mesh≤40 vertices and≤80 faces, positive lumped mass and 1–12 positive times. Full small generalized eigensystem, mass normalization, eigen-residual and heat-trace checks. Boundary condition explicit; no isometry-complete identification or scale invariance claim.

Heat diffusion as a shape descriptor

A heat kernel signature asks how much of a point heat impulse remains at its starting location after a chosen diffusion time. On a mesh, one value is associated with each vertex. Short times emphasize local geometry; larger times emphasize broader structure, eventually approaching the constant mode on a connected surface.

This is a spectral descriptor, rather than a texture image or a simulated material temperature with physical boundary conditions. It can help compare corresponding surface locations, but identical signatures do not prove that two surfaces are the same shape. Sampling, discretization and the diffusion-time convention remain part of every interpretation of the result.

Triangle mesh heat kernel signature calculator across diffusion times worked example012Mass at each vertex = 1/6Eigenvalues: 0, 3, 9At t = 1: K(0,0) ≈ 2.00049K(1,1) = K(2,2) ≈ 2.14948
Scroll across to see the full diagram.
For the unit right-triangle mesh, the lumped masses are 1/6 and the eigenvalues are 0, 3 and 9. At time 1, HKS at vertex zero is 2 + 4 exp(-9), approximately 2.000493639.

Compare this with the Cotangent Laplacian calculator from a triangle mesh. Evaluate the diagonal heat kernel as a time-dependent intrinsic shape descriptor, rather than return only a mesh Laplacian or a single vertex curvature estimate.

Preparing a valid triangle mesh

Enter three-dimensional vertex coordinates and triangular faces as zero-based vertex indices. Faces must use valid, distinct indices and have nonzero area. The supported mesh is connected and manifold, with a consistent orientation available. Repeating faces, collapsed edges or a disconnected extra component changes the spectral problem and should be corrected before calculation.

The vertex mass is the sum of one third of the area of each incident triangle. Positive masses are essential: they turn the generalized eigenvectors into area-normalized functions. The face list establishes the intrinsic metric through triangle edge lengths, so moving a vertex can change the descriptor even when the mesh connectivity stays the same.

The cotangent spectral construction

The stiffness matrix assembles cotangent contributions from the triangles. With the lumped mass matrix M, the eigenproblem is L phi equals lambda M phi. The eigenvectors are normalized so that their mass inner products form the identity matrix. Treating ordinary Euclidean normalization as equivalent would introduce an incorrect area scaling into the signature.

The heat diagonal sums each squared eigenfunction value, weighted by exp of minus eigenvalue times time. This small-mesh implementation uses the complete eigensystem rather than a truncated selection of low modes. On an open mesh, the natural cotangent formulation uses the boundary convention stated in the result; it is not a user-imposed fixed-temperature boundary.

Selecting meaningful diffusion times

Every requested time must be positive. A number that looks small in one coordinate system can be large in another because diffusion time scales with squared length. Scaling a mesh by a factor of ten requires scaling its times by one hundred to examine comparable intrinsic neighborhoods. The unnormalized signature itself also changes with surface area.

For very small times, high-frequency modes matter, making the full spectrum particularly useful on these bounded meshes. For large times, nonconstant modes decay and differences between vertices become harder to see. A flat-looking signature at a large time can therefore be a legitimate diffusion effect rather than evidence that the calculation ignored geometry.

The unit right-triangle example

The default mesh has vertices (0,0,0), (1,0,0) and (0,1,0), connected by one face. Its area is one half, so each lumped mass is one sixth. The generalized eigenvalues are zero, three and nine. These three numbers already make a compact independent test of the assembled stiffness and mass matrices.

At diffusion time one, the signature at vertex zero is 2 plus 4 exp(-9), approximately 2.000493639. At the other two vertices it is 2 plus 3 exp(-3) plus exp(-9), approximately 2.149484615. Their equality follows from the triangle's reflection symmetry, rather than from rounding or an assumed constant signature.

Residuals and the heat trace

An eigen-residual checks whether each returned vector satisfies the original generalized eigenproblem. A mass-orthogonality residual checks the normalization separately. Both matter: a solver can produce small-looking eigenvalues with incorrectly normalized eigenvectors, and the resulting heat values may then be wrong even though the stiffness spectrum appears plausible.

The mass-weighted sum of the heat diagonal should equal the sum of exp(-lambda times time). This heat-trace identity tests the assembled signature against the spectrum. It does not certify that the input mesh approximates an intended smooth surface. A numerical residual diagnoses arithmetic consistency, while mesh quality and modeling accuracy need their own assessment.

Comparing signatures without overclaiming

Rigidly translating or rotating the coordinates preserves the intrinsic edge lengths, so the signature should remain unchanged to numerical tolerance. A remeshed version of the same object need not return identical vertex values: the discretization and sampling locations differ. Compare corresponding times and normalization conventions before attributing any change to the underlying shape.

The page deliberately avoids calling HKS an isometry-complete identifier or a scale-invariant fingerprint. If scale invariance is required, choose and document a separate normalization. A failed eigensystem check means the numerical result is unresolved; it should not be replaced by a partially converged spectrum carrying the same assurance as a fully checked calculation.

A few questions, answered

Why is the constant mode not one?

The eigenfunctions use area-weighted normalization. On a connected mesh, the limiting diagonal is the reciprocal of total area.

Are the times measured in seconds?

Only if a physical diffusivity and compatible length units have been supplied externally. The mathematical time parameter has squared-length scaling.

Does this use only the smallest eigenvalues?

The bounded small-mesh calculation uses the complete generalized eigensystem.

Can identical HKS values prove two surfaces are identical?

No. HKS is a descriptor, not a complete shape-identity certificate.

Find your calculator

Start typing to explore the library.