Wildmeshing Toolkit
wmtk::invariants::EdgeValenceInvariant Class Reference

for edge swap in tetmesh. More...

#include <EdgeValenceInvariant.hpp>

Inheritance diagram for wmtk::invariants::EdgeValenceInvariant:
[legend]
Collaboration diagram for wmtk::invariants::EdgeValenceInvariant:
[legend]

Public Member Functions

 EdgeValenceInvariant (const Mesh &m, int64_t valence)
 
bool before (const simplex::Simplex &t) const override
 
- Public Member Functions inherited from wmtk::invariants::Invariant
virtual bool after (const std::vector< Tuple > &top_dimension_tuples_before, const std::vector< Tuple > &top_dimension_tuples_after) const
 
 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 Meshmesh () 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 Attributes

int64_t m_valence
 

Detailed Description

for edge swap in tetmesh.

Checks that the valence of the edge is equal to the given valence.

Definition at line 12 of file EdgeValenceInvariant.hpp.

Constructor & Destructor Documentation

◆ EdgeValenceInvariant()

wmtk::invariants::EdgeValenceInvariant::EdgeValenceInvariant ( const Mesh m,
int64_t  valence 
)

Definition at line 6 of file EdgeValenceInvariant.cpp.

Member Function Documentation

◆ before()

bool wmtk::invariants::EdgeValenceInvariant::before ( const simplex::Simplex t) const
overridevirtual

Reimplemented from wmtk::invariants::Invariant.

Definition at line 11 of file EdgeValenceInvariant.cpp.

References wmtk::Edge, m_valence, wmtk::invariants::Invariant::mesh(), wmtk::simplex::Simplex::primitive_type(), wmtk::simplex::top_dimension_cofaces_tuples(), and wmtk::simplex::Simplex::tuple().

Here is the call graph for this function:

Member Data Documentation

◆ m_valence

int64_t wmtk::invariants::EdgeValenceInvariant::m_valence
private

Definition at line 20 of file EdgeValenceInvariant.hpp.

Referenced by before().


The documentation for this class was generated from the following files: