* Compute the Euler characteristic of the mesh. */
| 39 | * Compute the Euler characteristic of the mesh. |
| 40 | */ |
| 41 | int VertexPositionGeometry::eulerCharacteristic() const { |
| 42 | return (int)mesh.nVertices() - (int)mesh.nEdges() + (int)mesh.nFaces(); |
| 43 | } |
| 44 | |
| 45 | /* |
| 46 | * Compute the mean length of all the edges in the mesh. |
no outgoing calls