Wildmeshing Toolkit
Swap56EnergyBeforeInvariant.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
wmtk/attribute/TypedAttributeHandle.hpp
>
4
#include "
Invariant.hpp
"
5
6
namespace
wmtk
{
7
class
Swap56EnergyBeforeInvariant
:
public
Invariant
8
{
9
public
:
10
Swap56EnergyBeforeInvariant
(
11
const
Mesh
& m,
12
const
attribute::TypedAttributeHandle<Rational>
& coordinate,
13
int64_t collapse_index,
14
double
eps = 1.0001);
15
using
Invariant::Invariant
;
16
17
bool
before
(
const
simplex::Simplex
& t)
const override
;
18
19
private
:
20
const
attribute::TypedAttributeHandle<Rational>
m_coordinate_handle
;
21
int64_t
m_collapse_index
;
22
const
double
m_eps
;
23
};
24
25
}
// namespace wmtk
Invariant.hpp
TypedAttributeHandle.hpp
wmtk::Mesh
Definition:
Mesh.hpp:106
wmtk::Swap56EnergyBeforeInvariant
Definition:
Swap56EnergyBeforeInvariant.hpp:8
wmtk::Swap56EnergyBeforeInvariant::m_eps
const double m_eps
Definition:
Swap56EnergyBeforeInvariant.hpp:22
wmtk::Swap56EnergyBeforeInvariant::m_collapse_index
int64_t m_collapse_index
Definition:
Swap56EnergyBeforeInvariant.hpp:21
wmtk::Swap56EnergyBeforeInvariant::before
bool before(const simplex::Simplex &t) const override
Definition:
Swap56EnergyBeforeInvariant.cpp:19
wmtk::Swap56EnergyBeforeInvariant::m_coordinate_handle
const attribute::TypedAttributeHandle< Rational > m_coordinate_handle
Definition:
Swap56EnergyBeforeInvariant.hpp:20
wmtk::Swap56EnergyBeforeInvariant::Swap56EnergyBeforeInvariant
Swap56EnergyBeforeInvariant(const Mesh &m, const attribute::TypedAttributeHandle< Rational > &coordinate, int64_t collapse_index, double eps=1.0001)
Definition:
Swap56EnergyBeforeInvariant.cpp:8
wmtk::attribute::TypedAttributeHandle
Handle that represents attributes for some mesh.
Definition:
TypedAttributeHandle.hpp:28
wmtk::invariants::Invariant
Definition:
Invariant.hpp:12
wmtk::invariants::Invariant::Invariant
Invariant(const Mesh &m)
Definition:
Invariant.cpp:10
wmtk::simplex::Simplex
Definition:
Simplex.hpp:22
wmtk
Definition:
Accessor.hpp:6
src
wmtk
invariants
Swap56EnergyBeforeInvariant.hpp
Generated by
1.9.1