Wildmeshing Toolkit
MinIncidentValenceInvariant.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
wmtk/attribute/AttributeHandle.hpp
>
4
#include "
Invariant.hpp
"
5
6
namespace
wmtk::invariants
{
10
class
MinIncidentValenceInvariant
:
public
Invariant
11
{
12
public
:
13
MinIncidentValenceInvariant
(
const
Mesh
& m, int64_t min_valence);
14
bool
before
(
const
simplex::Simplex
& t)
const override
;
15
bool
after
(
16
const
std::vector<Tuple>& top_dimension_tuples_before,
17
const
std::vector<Tuple>& top_dimension_tuples_after)
const override
;
18
19
private
:
20
bool
is_greater_min_valence
(
const
Tuple
& t)
const
;
21
22
int64_t
m_min_valence
;
23
};
24
}
// namespace wmtk::invariants
AttributeHandle.hpp
Invariant.hpp
wmtk::Mesh
Definition:
Mesh.hpp:106
wmtk::Tuple
Definition:
Tuple.hpp:42
wmtk::invariants::Invariant
Definition:
Invariant.hpp:12
wmtk::invariants::MinIncidentValenceInvariant
Invariant for minimum valence on both incident vertices of an edge.
Definition:
MinIncidentValenceInvariant.hpp:11
wmtk::invariants::MinIncidentValenceInvariant::is_greater_min_valence
bool is_greater_min_valence(const Tuple &t) const
Definition:
MinIncidentValenceInvariant.cpp:41
wmtk::invariants::MinIncidentValenceInvariant::m_min_valence
int64_t m_min_valence
Definition:
MinIncidentValenceInvariant.hpp:22
wmtk::invariants::MinIncidentValenceInvariant::before
bool before(const simplex::Simplex &t) const override
Definition:
MinIncidentValenceInvariant.cpp:15
wmtk::invariants::MinIncidentValenceInvariant::after
bool after(const std::vector< Tuple > &top_dimension_tuples_before, const std::vector< Tuple > &top_dimension_tuples_after) const override
Definition:
MinIncidentValenceInvariant.cpp:21
wmtk::invariants::MinIncidentValenceInvariant::MinIncidentValenceInvariant
MinIncidentValenceInvariant(const Mesh &m, int64_t min_valence)
Definition:
MinIncidentValenceInvariant.cpp:10
wmtk::simplex::Simplex
Definition:
Simplex.hpp:22
wmtk::invariants
Definition:
CollapseEnergyBeforeInvariant.cpp:11
src
wmtk
invariants
MinIncidentValenceInvariant.hpp
Generated by
1.9.1