The Euler-Poincaré Formula

The Euler-Poincaré formula is a formula describing the relationship of the number of vertices, the number of edges and the number of faces. It has been generalized to include potholes and holes that penetrate the solid. To state the Euler-Poincaré formula, we need the following definitions:

Then, the Euler-Poincaré formula is the following:

V - E + F - (L - F) - 2(S - G) = 0

Examples

Part of the information recorded in a B-rep is topological (i.e., adjacency relations). Invalid solids may be generated if the representation is not carefully constructed. One way of checking this topological invalidity is to use the Euler-Poincaré formula. If its value is not zero, we are sure something must be wrong in the representation. However, this is only a one-side test. More precisely, a zero value of the Euler-Poincaré formula does not mean the solid is valid.

The figure above has a box and an additional sheet which is simply a rectangle. This object has 10 vertices, 15 edges, 7 faces, 1 shell and no hole. Its loop number is equal to the number of faces. The value of the Euler-Poincaré formula is zero as shown below,

V-E+F-(L-F)-2(S-G) = 10-15+7-(7-7)-2(1-0)=0
but this is not a valid solid! Therefore, if the value of Euler-Poincaré formula is non-zero, the representation is definitely not a valid solid. However, the value of the Euler-Poincaré formula being zero does not guarantee the representation would yield a valid solid.