MCPcopy Create free account
hub / github.com/GeometryCollective/ddg-exercises / eulerCharacteristic

Method eulerCharacteristic

core/src/geometry.cpp:41–43  ·  view source on GitHub ↗

* Compute the Euler characteristic of the mesh. */

Source from the content-addressed store, hash-verified

39 * Compute the Euler characteristic of the mesh.
40 */
41int 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.

Callers 4

satsifyGaussBonnetMethod · 0.80
mainFunction · 0.80
TEST_FFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64