Shapes & spaces

Triangle mesh UV distortion calculator from supplied texture coordinates

Measure per-face UV angle and area distortion from tangent-plane Jacobians and their singular values.

Your numbers

One coordinate or index row per line; comma-separated entries.
One coordinate or index row per line; comma-separated entries.
One row of three distinct zero-based vertex indices per triangle.

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

Measure per-face UV angle and area distortion from tangent-plane Jacobians and their singular values.

THE FORMULAJ=UV edge matrix×(local 3D edge matrix)⁻¹; angle ratio=σmax/σmin; Esym=σmax²+σmin²+σmax⁻²+σmin⁻².

A worked example

Mapping the unit right triangle by (u, v) = (2x, y) gives singular values 2 and 1, angle ratio 2, area ratio 2 and symmetric Dirichlet value 6.25.

Good to know

Matching 3D and 2D vertex lists and 1–100 nondegenerate triangles. Singular or unresolved UV faces are rejected. Reports local orientation flips and area-weighted energy; no global injectivity, overlap repair or automatic scale normalization.

A mapping can distort without looking obviously wrong

A UV map assigns planar texture coordinates to a three-dimensional triangle mesh. It can stretch lengths, change angles, scale area or reverse orientation within individual faces. This calculator measures those local effects for an existing mapping rather than construct a new parameterization.

A visually neat atlas is not necessarily low distortion, and a low local distortion score does not prove that different faces avoid global overlap. The supplied UV coordinates define the mapping being assessed. The page reports its finite per-face geometry without silently changing or normalizing that mapping.

A local stretch of two in one directionσmax = 2, σmin = 1Angle ratio = 2Signed area ratio = 2Symmetric Dirichlet = 6.25
Scroll across to see the full diagram.
The unit triangle maps by diag(2,1), doubling area and giving symmetric Dirichlet value 6.25.

Compare this with the Harmonic mesh parameterization calculator with a unit circle boundary. Measure local area and angle distortion of an existing UV mapping instead of constructing a particular harmonic parameterization.

Matching geometry and texture rows

Enter one spatial vertex row and one UV row for the same vertex index. Each face references three such indices. A mismatch in row ordering pairs a texture coordinate with the wrong spatial point and changes every incident triangle's mapping, even if both coordinate lists look individually reasonable.

UV coordinates are not assumed to lie in the unit square. Their scale matters for area ratios and symmetric Dirichlet energy. If an atlas uses pixels while spatial coordinates use meters, those quantities reflect that numerical scaling; the calculator does not infer a physical conversion from the two lists.

A stretched right-triangle example

The default spatial triangle has vertices zero-zero-zero, one-zero-zero and zero-one-zero. Its UV triangle doubles the first coordinate while retaining the second. The resulting local Jacobian is diagonal with entries two and one, so its singular values are immediately checkable.

The maximum-to-minimum singular-value ratio is two, the signed area ratio is two, and no flip occurs. The symmetric Dirichlet value is four plus one plus one-quarter plus one, which equals six-point-two-five. The UV area is one while the original triangle area is one-half.

Constructing a tangent-plane Jacobian

For each spatial triangle, one edge defines the first local tangent axis. The second edge is resolved into its parallel coordinate and a perpendicular height. These coordinates form a two-by-two local geometric edge matrix that captures the triangle's intrinsic shape independently of its rigid placement in space.

The corresponding two UV edge vectors form the image matrix. Multiplying by the inverse local geometric matrix gives the Jacobian from tangent coordinates to UV coordinates. This construction avoids comparing arbitrary three-dimensional coordinate components with planar coordinates as if they were aligned axes.

Singular values separate stretch from orientation

The two singular values describe the largest and smallest local stretch factors. Their ratio measures conformal angle distortion: one means equal stretching in every tangent direction. Their product gives the magnitude of area scaling, but the determinant's sign is needed separately to detect a reversed face.

A reflection can have singular values one and one while still having a negative determinant. For that reason, the page reports flipped-face counts alongside angle ratios and energy. Singular values alone cannot tell whether the local orientation agrees with the one established by the entered face ordering.

Understanding the energy convention

The symmetric Dirichlet quantity sums squared stretches and squared inverse stretches. Under the convention used here, an isometric face with both singular values equal to one has value four. Some publications divide that expression by two or apply another normalization, so compare definitions before comparing literal scores.

The whole-mesh summary is weighted by original spatial face area. This prevents a tiny triangle from contributing as much as a large one solely because both occupy one row. The maximum angle ratio remains an unweighted worst-face diagnostic and can reveal a localized defect hidden by an averaged energy.

Limits before using a distortion score

A degenerate spatial or UV triangle cannot supply a reliable invertible local Jacobian and is rejected. A very thin triangle can be numerically ill-conditioned even when its area is nonzero. Such a rejection is preferable to a huge untrustworthy score whose displayed precision implies a resolved calculation.

Inspect the per-face table and use a global triangle-overlap test if atlas injectivity matters. A map with no flipped faces can still overlap itself across distant faces. This calculator measures a supplied piecewise-linear mapping; it does not untangle it, choose seams or optimize an alternative UV layout.

A few questions, answered

Does angle ratio 1 mean no distortion at all?

No. Equal stretching preserves angles but can still scale area; isometry also requires both stretches to equal 1.

Can a reflection have small energy?

Yes. Orientation must be checked separately through the determinant sign and flipped-face count.

Why is an isometry's symmetric Dirichlet value 4?

This page uses the unhalved sum of squared singular values and squared inverse singular values.

Does no local flip prove no global overlap?

No. Distant faces can overlap in UV space while all local Jacobians retain positive orientation.

Find your calculator

Start typing to explore the library.