Wildmeshing Toolkit
MinIncidentValenceInvariant.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 #include "Invariant.hpp"
5 
6 namespace wmtk::invariants {
11 {
12 public:
13  MinIncidentValenceInvariant(const Mesh& m, int64_t min_valence);
14  bool before(const simplex::Simplex& t) const override;
15  bool after(
16  const std::vector<Tuple>& top_dimension_tuples_before,
17  const std::vector<Tuple>& top_dimension_tuples_after) const override;
18 
19 private:
20  bool is_greater_min_valence(const Tuple& t) const;
21 
22  int64_t m_min_valence;
23 };
24 } // namespace wmtk::invariants
Invariant for minimum valence on both incident vertices of an edge.
bool before(const simplex::Simplex &t) const override
bool after(const std::vector< Tuple > &top_dimension_tuples_before, const std::vector< Tuple > &top_dimension_tuples_after) const override
MinIncidentValenceInvariant(const Mesh &m, int64_t min_valence)