Theoremcore
Euler-Poincare formula for solids
Also called Euler-Poincare formula.
For a manifold solid with faces that are disks with holes, V - E + F - (L - F) - 2(S - H) = 0, where L counts loops, S shells and H holes (the total genus).
The Euler-Poincaré formula for solids is a relation between the numbers of cells of the boundary of a manifold solid: . Here , and count the vertices, edges and faces, counts the loops (the boundary cycles of the faces), counts the shells and counts the holes through the solid. It extends Euler's formula to faces with holes, to solids with cavities and to solids with tunnels. Boundary representations use it to compute the number of holes and as a quick check, and the Euler operators are the steps that keep it true. It is a necessary condition for a valid boundary model, not a sufficient one.
Statement
Let be a manifold solid whose boundary is split into vertices (points), edges and faces, with these conditions:
- Each edge is an open arc whose two ends are vertices (the two ends may be the same vertex).
- Each face is a connected open subset of that is homeomorphic to an open disk with disjoint closed disks removed. Its boundary is made of loops, and each loop is a closed walk of edges, or a single vertex with no edge.
- The vertices, the edges and the faces are disjoint, and together they make up .
Let be the number of loops, so that is the number of rings (the inner loops of the faces), let be the number of connected components of (the shells), and let be the sum of the genera of the shells (the holes, or the genus of the solid). Then
or, in the other common form,
For a solid with one shell, no holes and faces without rings, this is . The orientation convention of the solid modeling pages is the right-hand rule: the outer loop of a face runs counterclockwise seen from outside. The formula does not depend on orientation, but the boundary of a solid in is always orientable, and the proof uses this.
In plain words
Count the corners, the edges and the faces of a solid. For a box, a pyramid or any solid like a ball, corners minus edges plus faces is always two. Each tunnel through the solid lowers this number by two. Each empty bubble inside the solid adds a second skin, and each skin adds two. A face with a hole in it, like the top of a ring-shaped block, adds one extra boundary cycle, and the formula subtracts one for each such cycle.
So the formula does not say that the shape is a real solid. It says only that the counts agree with a skin that has the given number of parts and tunnels.
Proof
The proof has three steps: split by shells, remove the rings, and use the Euler characteristic of a closed surface.
Step 1: shells. Each vertex, edge and face lies in exactly one shell, because a face and an edge are connected sets and the shells are the components of . So , , and are sums over the shells, and is a sum by definition. It is enough to prove that a shell of genus satisfies for its own counts, and to add these equations.
Step 2: rings. Take a face with . The face is connected, so there is a simple arc inside from a vertex of one ring to a vertex of another loop of , whose inner points lie in . Add this arc as a new edge. The two loops that it joins become one loop, which goes along the first loop, across the new edge, along the second loop and back across the new edge. The face is now homeomorphic to an open disk with closed disks removed. The count changes are and , with and unchanged, so does not change. Repeat until no face has a ring. Then each face is an open disk, its boundary is one closed walk of edges or one vertex, and .
Step 3: closed surfaces. Now the vertices, edges and faces of form a cell decomposition: points, open arcs and open disks. A shell is a connected closed surface in , so it is orientable, and by the classification of surfaces it is the sphere with handles for its genus . The number of any cell decomposition of a surface is its Euler characteristic, which does not depend on the decomposition, and for the orientable surface of genus it is (Mohar and Thomassen, Chapter 3; see graph genus). For and a decomposition with at least one edge, this is Euler's formula for the plane graph that one gets by removing a point of a face. So after step 2, and before it.
Adding over the shells gives , which is the statement.
Checks. The examples below were computed with a short script, and the first five also by the B-rep check of the boundary representation page.
| solid | |||||||
|---|---|---|---|---|---|---|---|
| cube | 8 | 12 | 6 | 6 | 1 | 0 | |
| square frame with the hole | 16 | 24 | 10 | 12 | 1 | 1 | |
| plate with two holes | 24 | 36 | 14 | 18 | 1 | 2 | |
| cube with the cavity | 16 | 24 | 12 | 12 | 2 | 0 | |
| plate with a block on top | 16 | 24 | 11 | 12 | 1 | 0 | |
| solid cylinder: 2 circle edges, top, bottom and side | 2 | 2 | 3 | 4 | 1 | 0 | |
| one vertex and one face (the first step of the Euler operators) | 1 | 0 | 1 | 1 | 1 | 0 |
In the square frame, the top and bottom faces are square rings, each with one ring loop. If each of them is cut by one bridge edge, as in step 2, the counts become , , , , and again. If each is cut into four trapezoids, they become , , , , and . In the cylinder, each circle edge has one vertex on it, and the side face is an annulus, a disk with one hole, so it has two loops. In the last row, the face is the sphere minus one point, an open disk, and its only loop is the vertex.
Consequences
- The genus from the counts. A boundary model stores , , , and but not . The formula gives , and the check that this is a whole number with each shell of genus at least 0 is a cheap test of the topology. The validity check of the boundary representation page does this per shell.
- Five basic changes. The integer vectors that satisfy the formula form a lattice of rank 5 in , because the formula is one linear equation with . The Euler operators MVSF, MEV, MEF, KEMR and KFMRH change the counts by , , , and . Each is a solution, and the six minors of these five rows are , with greatest common divisor 1. So the five vectors are a basis of the lattice: every vector of counts that satisfies the formula is an integer combination of them. This is only the count side. That the operators also reach every valid topology is a separate theorem of Mäntylä (1984).
- Convex polytopes and meshes. For a convex polytope in , , and , so , which is Euler's formula for the plane graph of the polytope. For a closed polygon mesh of genus with disk faces, , and for a mesh with border loops ; the graph genus page gives the same relation for cellular embeddings of graphs.
- The solid itself. For a compact 3-manifold with boundary, . So a decomposition of the solid into cells of dimension 3, such as the unit cubes of a voxel set, gives for the counts of the whole complex. A single cube as one 3-cell has . The tests of the boundary representation page use this to check the number of holes of random voxel solids independently.
- Cell complexes in general. For any finite cell complex, the alternating sum of the numbers of cells of each dimension equals the alternating sum of its Betti numbers. That theorem of Poincaré is the general result, and the formula of this page is its case for the boundary surface of a solid, written with the counts that B-rep data structures store.
Tightness
Each hypothesis is needed. Each example breaks one condition, and the formula fails.
- Rings not counted. The square frame with each square ring face counted as one loop gives and . The solid cylinder with the side face counted as one loop gives .
- A face that is not a disk with holes. The boundary of a solid torus as one face, with one vertex as its loop, has , , , , , , and . The face is a torus minus a point, which has genus 1, so condition 2 fails.
- A boundary that is not a manifold. Two cubes that share a vertex have , , , , and one connected boundary. With , the sum is , and with it is ; no choice of the counts gives 0. Two cubes that share an edge have , , and give . Non-manifold solids need a different count, which is one reason for the radial edge data structure.
The converse is false. The formula is necessary for a valid model, not sufficient.
- A cube with one extra edge from a corner to a new vertex outside the cube has , , , , , , and . As counts, this is a cube with an edge drawn inside one face from a corner to a new point of that face, which is a valid model. With the new vertex outside the cube, the wire edge is not on the boundary of any solid. Only the geometry can tell the two apart.
- A tetrahedron in which one face lists its vertices in the wrong order has the counts of a valid tetrahedron, but its orientation is not consistent.
- Any vector of counts that satisfies the equation, for example , , , , , (a pentagonal prism), passes the test, whatever faces are stored. The test does not look at the faces.
History
Euler stated for polyhedra in 1752 and published a proof in 1758. In 1813, L'Huilier pointed out polyhedra for which it fails, such as a solid with a tunnel and a solid with a face that has a hole, and gave corrections for them. Poincaré proved the general relation between the numbers of cells and the Betti numbers of a complex in his papers on analysis situs from 1895 on. In solid modeling, Baumgart used Euler's relation to define the first Euler operators in 1975, and Braid, Hillyard and Stroud wrote the formula with loops, shells and holes for the BUILD modeler in 1980. Mäntylä's book of 1988 states it in the form that this page uses.
References
- Martti Mäntylä, An Introduction to Solid Modeling, Computer Science Press, 1988, Section 3.5.6, Euler characteristic (p. 43), Section 3.5.7, Surfaces with boundary (p. 46), and Section 9.4.1 (p. 154)
- Bojan Mohar and Carsten Thomassen, Graphs on Surfaces, Johns Hopkins University Press, 2001, Chapter 3 (the classification of surfaces and the Euler characteristic 2 - 2g of a cellular embedding in the orientable surface of genus g)
- Ian C. Braid, R. C. Hillyard and Ian A. Stroud, Stepwise construction of polyhedra in geometric modelling, in K. W. Brodlie (ed.), Mathematical Methods in Computer Graphics and Design, Academic Press, 1980, 123 to 141, the counts of a boundary model with loops, shells and holes, and the operators that keep the formula
- Leonhard Euler, Elementa doctrinae solidorum, Novi Commentarii Academiae Scientiarum Petropolitanae 4 (1752/53), published 1758, the relation V - E + F = 2 for polyhedra
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag VPGPRK Edit this page History Report an error Markdown