Wildmeshing Toolkit
|
#include <CollapseEnergyBeforeInvariant.hpp>
Public Member Functions | |
CollapseEnergyBeforeInvariant (const Mesh &m, const attribute::TypedAttributeHandle< Rational > &coordinate, const attribute::TypedAttributeHandle< double > &energy, int64_t collapse_type=0) | |
bool | before (const simplex::Simplex &s) 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 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 Attributes | |
const attribute::TypedAttributeHandle< Rational > | m_coordinate_handle |
const attribute::TypedAttributeHandle< double > | m_energy_handle |
const int64_t | m_collapse_type |
Definition at line 7 of file CollapseEnergyBeforeInvariant.hpp.
wmtk::invariants::CollapseEnergyBeforeInvariant::CollapseEnergyBeforeInvariant | ( | const Mesh & | m, |
const attribute::TypedAttributeHandle< Rational > & | coordinate, | ||
const attribute::TypedAttributeHandle< double > & | energy, | ||
int64_t | collapse_type = 0 |
||
) |
Definition at line 13 of file CollapseEnergyBeforeInvariant.cpp.
|
overridevirtual |
Reimplemented from wmtk::invariants::Invariant.
Definition at line 24 of file CollapseEnergyBeforeInvariant.cpp.
References wmtk::Mesh::create_const_accessor(), wmtk::Edge, wmtk::simplex::utils::SimplexComparisons::equal(), m_collapse_type, m_coordinate_handle, m_energy_handle, wmtk::invariants::Invariant::mesh(), wmtk::Mesh::orient_vertices(), wmtk::PE, PF, PT, wmtk::PV, wmtk::Mesh::switch_tuple(), wmtk::function::utils::Tet_AMIPS_energy(), wmtk::Tetrahedron, wmtk::simplex::top_dimension_cofaces(), wmtk::Triangle, wmtk::simplex::Simplex::tuple(), wmtk::Vertex, wmtk::simplex::Simplex::vertex(), and wmtk::utils::wmtk_orient3d().
wmtk::invariants::Invariant::Invariant |
Definition at line 23 of file Invariant.cpp.
wmtk::invariants::Invariant::Invariant |
Definition at line 24 of file Invariant.cpp.
|
private |
Definition at line 22 of file CollapseEnergyBeforeInvariant.hpp.
Referenced by before().
|
private |
Definition at line 20 of file CollapseEnergyBeforeInvariant.hpp.
Referenced by before().
|
private |
Definition at line 21 of file CollapseEnergyBeforeInvariant.hpp.
Referenced by before().