Wildmeshing Toolkit
wmtk::MultiMeshEdgeTopologyInvariant Class Reference

#include <MultiMeshTopologyInvariant.hpp>

Inheritance diagram for wmtk::MultiMeshEdgeTopologyInvariant:
[legend]
Collaboration diagram for wmtk::MultiMeshEdgeTopologyInvariant:
[legend]

Public Member Functions

 MultiMeshEdgeTopologyInvariant (const Mesh &parent, const EdgeMesh &child)
 
bool before (const simplex::Simplex &t) const override
 check if both the vertices are in the child mesh but the edge itself is not in the child mesh (return false if so) More...
 
- 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

const Meshm_child_mesh
 

Detailed Description

Definition at line 5 of file MultiMeshTopologyInvariant.hpp.

Constructor & Destructor Documentation

◆ MultiMeshEdgeTopologyInvariant()

wmtk::MultiMeshEdgeTopologyInvariant::MultiMeshEdgeTopologyInvariant ( const Mesh parent,
const EdgeMesh child 
)

Definition at line 13 of file MultiMeshTopologyInvariant.cpp.

Member Function Documentation

◆ before()

bool wmtk::MultiMeshEdgeTopologyInvariant::before ( const simplex::Simplex t) const
overridevirtual

check if both the vertices are in the child mesh but the edge itself is not in the child mesh (return false if so)

Parameters
tedge tuple
Returns
true otherwise
false both vertices are in the child edge mesh but the edge itself is not in.

Reimplemented from wmtk::invariants::Invariant.

Definition at line 20 of file MultiMeshTopologyInvariant.cpp.

References wmtk::Edge, m_child_mesh, wmtk::invariants::Invariant::mesh(), wmtk::Mesh::switch_tuple(), wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.

Here is the call graph for this function:

Member Data Documentation

◆ m_child_mesh

const Mesh& wmtk::MultiMeshEdgeTopologyInvariant::m_child_mesh
private

Definition at line 21 of file MultiMeshTopologyInvariant.hpp.

Referenced by before().


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