Advanced maths

Triangle mesh Euler characteristic and manifold checker

This checker audits a triangle mesh’s combinatorial topology before inferring a genus.

Your numbers

3D rows with no unused vertices.
Three zero-based indices per row.

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

This checker audits a triangle mesh’s combinatorial topology before inferring a genus. It checks edge incidence, connected vertex links, face-orientation consistency and componentwise Euler characteristics. Boundary loops and orientable genus are reported only when the input passes the required manifold conditions.

THE FORMULAχ=V−E+F; for an orientable connected 2-manifold, χ=2−2g−b.

A worked example

The boundary of the coordinate tetrahedron has four vertices, six edges and four faces, giving χ=2. Every edge has two incident triangles, every vertex link is a cycle, and the surface is orientable without boundary. The genus formula gives g=(2−0−2)/2=0.

Good to know

3–64 distinct spatial vertices, 1–128 nondegenerate faces, no duplicate faces or unused vertices. Combinatorial audit only: geometric self-intersections are not detected. Nonmanifold inputs receive no genus interpretation. Disconnected meshes are summarized by face-connected components; ambiguous pinched structures are flagged.

An Euler number alone cannot establish a surface type

Many invalid or nonmanifold triangle collections still have an integer V−E+F. Applying the genus formula to that number without checking incidence can produce a plausible but meaningless answer. The calculator therefore reports the raw Euler characteristic separately from the manifold and orientability decisions.

Every ordinary interior edge should have two incident faces and every boundary edge one. An edge with three incident triangles is immediately nonmanifold. However, edge counts are not sufficient: two closed shells that touch only at a vertex can satisfy local edge counts while failing to form a manifold at that shared point.

The tetrahedron boundary passes the closed orientable genus-zero auditV − E + F4 − 6 + 4 = 2Boundary loops: 0Orientable genus: 0
Four vertices, six edges and four faces give Euler characteristic two. Every edge has two incident faces, each vertex link is a connected cycle and no boundary edge remains. The orientable genus is zero.

The Graph cycle basis calculator from edge list covers a related task. This page focuses on triangle mesh Euler characteristic and manifold checker with the method limits and worked example described below.

Vertex links catch pinches missed by edge tests

The link of a mesh vertex consists of the opposite edges from all incident triangles. For a surface interior vertex, that graph must be one connected cycle. For a boundary vertex, it must be one connected path. Disconnected links or branching degrees reveal a pinched or otherwise nonmanifold neighborhood.

Orientability is tested by propagating face signs across shared edges. A conflict means no consistent global orientation exists. This is distinct from the current face winding: an orientable surface can arrive with inconsistent input winding that could be corrected by flips. The note distinguishes those two situations.

Genus is inferred per valid orientable component

Boundary loops are counted from the boundary-edge graph after the manifold tests pass. The formula χ=2−2g−b then gives a nonnegative integer genus for each orientable connected component. A closed tetrahedron has no boundary loops; a single filled triangle is a disk with one boundary loop and genus zero.

Graph cycle rank is a different invariant of the edge graph and does not account for faces filling those cycles. This checker therefore differs from the graph cycle-basis calculator. It also does not verify geometric embedding, so a self-intersecting drawing can pass the combinatorial audit without representing an embedded physical boundary.

A few questions, answered

Does inconsistent winding mean nonorientable?

No. Orientability asks whether some consistent face orientation exists; current winding is checked separately.

Does this prove the mesh is self-intersection-free?

No. It checks combinatorial incidence and nondegenerate individual faces, not intersections between distant triangles.

Find your calculator

Start typing to explore the library.