Wildmeshing Toolkit
wmtk::MaxEdgeLengthInvariant Class Reference

#include <MaxEdgeLengthInvariant.hpp>

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

Public Member Functions

 MaxEdgeLengthInvariant (const Mesh &m, const TypedAttributeHandle< double > &coordinate, double threshold_squared)
 
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

const TypedAttributeHandle< double > m_coordinate_handle
 
double m_threshold_squared
 

Detailed Description

Definition at line 7 of file MaxEdgeLengthInvariant.hpp.

Constructor & Destructor Documentation

◆ MaxEdgeLengthInvariant()

wmtk::MaxEdgeLengthInvariant::MaxEdgeLengthInvariant ( const Mesh m,
const TypedAttributeHandle< double > &  coordinate,
double  threshold_squared 
)

Definition at line 6 of file MaxEdgeLengthInvariant.cpp.

Member Function Documentation

◆ before()

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

Reimplemented from wmtk::invariants::Invariant.

Definition at line 14 of file MaxEdgeLengthInvariant.cpp.

References wmtk::attribute::Accessor< T, MeshType, Dim >::const_vector_attribute(), wmtk::Mesh::create_const_accessor(), m_coordinate_handle, m_threshold_squared, wmtk::invariants::Invariant::mesh(), wmtk::simplex::Simplex::tuple(), and wmtk::Vertex.

Here is the call graph for this function:

Member Data Documentation

◆ m_coordinate_handle

const TypedAttributeHandle<double> wmtk::MaxEdgeLengthInvariant::m_coordinate_handle
private

Definition at line 18 of file MaxEdgeLengthInvariant.hpp.

Referenced by before().

◆ m_threshold_squared

double wmtk::MaxEdgeLengthInvariant::m_threshold_squared
private

Definition at line 19 of file MaxEdgeLengthInvariant.hpp.

Referenced by before().


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