Shapes & spaces

Triangle mesh principal curvature estimate calculator at a selected vertex

Estimate principal curvatures at one selected triangle-mesh vertex using an oriented two-ring quadratic Monge fit.

Your numbers

One comma-separated row per line.
One comma-separated row per line.

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

Estimate principal curvatures at one selected triangle-mesh vertex using an oriented two-ring quadratic Monge fit.

THE FORMULAz≈a u+b v+(A u²+2Buv+D v²)/2; principal curvatures are eigenvalues of I⁻¹II.

A worked example

At selected center vertex 4, the default quadratic bowl has estimated principal curvatures 0.2 and 0.2, mean 0.2 and Gaussian curvature 0.04. Directions are nonunique and omitted.

Good to know

One selected vertex of an oriented edge-manifold triangular mesh with 3–100 distinct spatial vertices, 1–200 nondegenerate faces and no isolates. Needs at least five sufficiently independent two-ring neighbors for the quadratic fit. Signed numerical estimate, orientation/scale dependent; boundary flag and fit residual supplied. Equal curvatures omit nonunique directions.

Estimate curvature at the selected vertex

A triangle mesh is piecewise flat, so assigning smooth principal curvature to one vertex requires an estimation convention. This calculator fits a local quadratic surface around a selected vertex and reads curvature from that fitted patch. It returns an estimate at that vertex, rather than computing an exact smooth invariant for the whole mesh.

The neighborhood contains vertices reached within two edge steps. An area-weighted oriented normal defines the local height direction, and two perpendicular tangent vectors define local coordinates. The fitted patch can tilt slightly within that frame, so the first and second fundamental forms are both used when obtaining its principal curvatures.

Triangle mesh principal curvature estimate worked examplez=0.1(x²+y²)At center:k₁=k₂=0.2Umbilic:axes not unique
Scroll across to see the full diagram.
At selected center vertex 4, the default quadratic bowl has estimated principal curvatures 0.2 and 0.2, mean 0.2 and Gaussian curvature 0.04. Directions are nonunique and omitted.

Compare this with the Parametric surface Gaussian and mean curvature calculator. Estimate vertex principal curvatures/directions from a sampled triangular surface instead of differentiating a supplied analytic parametrization.

Enter a consistently oriented mesh

List spatial vertex coordinates, then triangular faces as three zero-based vertex indices per row, and finally choose the vertex to inspect. Face order determines orientation. Shared interior edges must occur in opposite directions across adjacent triangles, and an edge may belong to at most two faces under the supported edge-manifold convention.

The input accepts up to one hundred vertices and two hundred faces, with no duplicate or degenerate triangles and no isolated vertices. At least five independent nearby samples are needed to resolve the quadratic coefficients. A large mesh with an undersampled selected neighborhood can therefore fail even when its total vertex count is comfortably within bounds.

Read the center bowl example

The default nine vertices sample a shallow quadratic bowl on a three-by-three grid. Vertex four is the center, and its two-ring neighborhood includes the eight surrounding observations. Their heights agree with one tenth times x squared plus one tenth times y squared, so the fitted Hessian has equal diagonal values 0.2.

At the center the fitted gradient vanishes, giving both principal curvature estimates equal to 0.2. Their mean is 0.2 and their product is 0.04. Since the curvatures are equal, every tangent direction is principal: the calculator marks directions as nonunique and returns an empty direction list instead of inventing two preferred axes.

Fit a local Monge patch

Relative coordinates are projected onto the tangent frame and normal. The least-squares design includes two linear terms and three quadratic terms, with no constant because the patch is anchored at the selected vertex. This provides local slopes and Hessian coefficients from an explicitly bounded neighborhood rather than a global surface reconstruction.

The first fundamental form accounts for metric stretching caused by fitted slopes. The second fundamental form combines the quadratic coefficients with the normalizing factor for the fitted graph. Eigenvalues of their shape operator give the two signed principal curvature estimates. Taking only the raw Hessian eigenvalues would be justified only when the fitted slope vanishes.

Inspect residuals boundary flags and directions

The RMS fit residual measures how well neighboring heights agree with the fitted quadratic patch. It has coordinate-length units and is not itself a curvature error bound. A low residual can accompany a biased estimate when the neighborhood is too broad for the desired local feature or samples an unrepresentative direction pattern.

The boundary flag identifies a selected vertex incident to a boundary edge. One-sided neighborhoods can be less stable than balanced interior neighborhoods. When distinct principal curvatures are resolved, the returned spatial directions are tangent to the fitted patch; each direction is only defined up to reversing its sign, so opposite arrows represent the same principal axis.

Track orientation and unit changes

Reversing every face orientation reverses the chosen normal and hence reverses the signs of both principal curvatures. Mean curvature changes sign, while Gaussian curvature, their product, does not. The sign convention therefore belongs to the oriented input mesh and should be preserved when comparing two independently generated datasets.

Uniformly enlarging the coordinates reduces principal curvatures inversely with length. Gaussian curvature changes inversely with squared length. Mixing meters and millimeters between meshes creates large apparent discrepancies even when their shapes are geometrically similar. Compare units, normal orientation and selected-neighborhood scale before interpreting a difference as a change in physical bending.

Keep the estimation scope visible

A two-ring neighborhood is a combinatorial scale, not a fixed physical radius. Refining the mesh or changing its triangulation can change which samples enter the fit and how noise affects it. The calculator does not provide smoothing, adaptive neighborhood selection or a certified convergence rate toward an unknown underlying smooth surface.

At nearly umbilic points the two curvature values can be close enough that principal axes are unstable or mathematically nonunique. An omitted direction list is then informative, not a missing computation. Use the curvature values, fit residual, normal, neighborhood size and boundary status together when assessing whether the selected-vertex estimate is useful.

A few questions, answered

Which vertex is analyzed?

The selected zero-based vertex index;its two-ring neighborhood supplies the local fit.

Are principal directions unique at an umbilic?

No. Equal principal curvatures leave the tangent axes nonunique;the direction list is withheld.

What determines curvature signs?

The oriented area-weighted normal and the stated Monge-fit convention.

Does this recover exact smooth curvature?

No. It is a scale-dependent estimate influenced by triangulation and neighborhood conditioning.

Find your calculator

Start typing to explore the library.