Wildmeshing Toolkit
wmtk::Swap2dEdgeLengthInvariant Class Reference

#include <Swap2dEdgeLengthInvariant.hpp>

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

Public Member Functions

 Swap2dEdgeLengthInvariant (const Mesh &m, const attribute::TypedAttributeHandle< double > &coordinate)
 
bool before (const simplex::Simplex &t) const override
 
 Invariant (const Mesh &m)
 
 Invariant (const Mesh &m, bool use_before, bool use_old_state_in_after, bool use_new_state_in_after)
 
- 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 attribute::TypedAttributeHandle< double > m_coordinate_handle
 

Detailed Description

Definition at line 7 of file Swap2dEdgeLengthInvariant.hpp.

Constructor & Destructor Documentation

◆ Swap2dEdgeLengthInvariant()

wmtk::Swap2dEdgeLengthInvariant::Swap2dEdgeLengthInvariant ( const Mesh m,
const attribute::TypedAttributeHandle< double > &  coordinate 
)

Definition at line 7 of file Swap2dEdgeLengthInvariant.cpp.

Member Function Documentation

◆ before()

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

Reimplemented from wmtk::invariants::Invariant.

Definition at line 14 of file Swap2dEdgeLengthInvariant.cpp.

References wmtk::Mesh::create_const_accessor(), wmtk::Edge, m_coordinate_handle, wmtk::invariants::Invariant::mesh(), wmtk::PE, PF, wmtk::PV, wmtk::Mesh::switch_tuple(), wmtk::Mesh::switch_tuples(), wmtk::Triangle, wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.

Here is the call graph for this function:

◆ Invariant() [1/2]

wmtk::invariants::Invariant::Invariant

Definition at line 23 of file Invariant.cpp.

◆ Invariant() [2/2]

wmtk::invariants::Invariant::Invariant

Definition at line 24 of file Invariant.cpp.

Member Data Documentation

◆ m_coordinate_handle

const attribute::TypedAttributeHandle<double> wmtk::Swap2dEdgeLengthInvariant::m_coordinate_handle
private

Definition at line 18 of file Swap2dEdgeLengthInvariant.hpp.

Referenced by before().


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