Wildmeshing Toolkit
EdgeValenceInvariant.cpp
Go to the documentation of this file.
2 
4 
5 namespace wmtk::invariants {
7  : Invariant(m,true,false,false)
8  , m_valence(valence)
9 {}
10 
12 {
13  const Tuple& t = simplex.tuple();
14 
15  assert(simplex.primitive_type() == PrimitiveType::Edge);
16 
17  return simplex::top_dimension_cofaces_tuples(mesh(), simplex).size() == m_valence;
18 }
19 } // namespace wmtk::invariants
bool before(const simplex::Simplex &t) const override
EdgeValenceInvariant(const Mesh &m, int64_t valence)
const Mesh & mesh() const
Definition: Invariant.cpp:35
const Tuple & tuple() const
Definition: Simplex.hpp:53
PrimitiveType primitive_type() const
Definition: Simplex.hpp:51
void top_dimension_cofaces_tuples(const PointMesh &mesh, const Simplex &simplex, SimplexCollection &collection)