14#include <lagrange/Edge.h>
15#include <lagrange/MeshTrait.h>
16#include <lagrange/legacy/inline.h>
24template <
typename MeshType>
27 static_assert(MeshTrait<MeshType>::is_mesh(),
"Input type is not Mesh");
28 mesh.initialize_edge_data();
29 return (
int)mesh.get_num_vertices() + (int)mesh.get_num_facets() - (int)mesh.get_num_edges();
int compute_euler(const SurfaceMesh< Scalar, Index > &mesh)
Compute Euler characteristic of a mesh.
Definition: topology.cpp:35
Main namespace for Lagrange.
Definition: AABBIGL.h:30