Wildmeshing Toolkit
|
Invariant for minimum valence on both incident vertices of an edge. More...
#include <MinIncidentValenceInvariant.hpp>
Public Member Functions | |
MinIncidentValenceInvariant (const Mesh &m, int64_t min_valence) | |
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 |
Public Member Functions inherited from wmtk::invariants::Invariant | |
Invariant (const Mesh &m) | |
Invariant (const Mesh &m, bool use_before, bool use_old_state_in_after, bool use_new_state_in_after) | |
virtual | ~Invariant () |
const Mesh & | mesh () const |
virtual bool | directly_modified_after (const std::vector< simplex::Simplex > &simplices_before, const std::vector< simplex::Simplex > &simplices_after) const |
bool | use_before () const |
bool | use_after () const |
bool | use_old_state_in_after () const |
bool | use_new_state_in_after () const |
Private Member Functions | |
bool | is_greater_min_valence (const Tuple &t) const |
Private Attributes | |
int64_t | m_min_valence |
Invariant for minimum valence on both incident vertices of an edge.
Definition at line 10 of file MinIncidentValenceInvariant.hpp.
wmtk::invariants::MinIncidentValenceInvariant::MinIncidentValenceInvariant | ( | const Mesh & | m, |
int64_t | min_valence | ||
) |
Definition at line 10 of file MinIncidentValenceInvariant.cpp.
|
overridevirtual |
Reimplemented from wmtk::invariants::Invariant.
Definition at line 21 of file MinIncidentValenceInvariant.cpp.
References wmtk::Edge, wmtk::simplex::faces_single_dimension_tuples(), is_greater_min_valence(), and wmtk::invariants::Invariant::mesh().
|
overridevirtual |
Reimplemented from wmtk::invariants::Invariant.
Definition at line 15 of file MinIncidentValenceInvariant.cpp.
References wmtk::Edge, is_greater_min_valence(), wmtk::simplex::Simplex::primitive_type(), and wmtk::simplex::Simplex::tuple().
|
private |
Definition at line 41 of file MinIncidentValenceInvariant.cpp.
References wmtk::simplex::Simplex::face(), wmtk::simplex::faces_single_dimension_tuples(), wmtk::simplex::link(), m_min_valence, wmtk::invariants::Invariant::mesh(), wmtk::simplex::SimplexCollection::simplex_vector(), wmtk::Vertex, and wmtk::simplex::Simplex::vertex().
Referenced by after(), and before().
|
private |
Definition at line 22 of file MinIncidentValenceInvariant.hpp.
Referenced by is_greater_min_valence().