Wildmeshing Toolkit
CollapseEnergyBeforeInvariantDouble.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::invariants
{
7
class
CollapseEnergyBeforeInvariantDouble
:
public
Invariant
8
{
9
public
:
10
CollapseEnergyBeforeInvariantDouble
(
11
const
Mesh
& m,
12
const
attribute::TypedAttributeHandle<double>
& coordinate,
13
const
attribute::TypedAttributeHandle<double>
& energy,
14
int64_t collapse_type = 0);
15
using
Invariant::Invariant
;
16
17
bool
before
(
const
simplex::Simplex
& s)
const override
;
18
19
private
:
20
const
attribute::TypedAttributeHandle<double>
m_coordinate_handle
;
21
const
attribute::TypedAttributeHandle<double>
m_energy_handle
;
22
const
int64_t
m_collapse_type
;
// 0: collapse to v0, 1: collapse to v1, 2: collapse to midpoint
23
};
24
}
// namespace wmtk::invariants
Invariant.hpp
TypedAttributeHandle.hpp
wmtk::Mesh
Definition:
Mesh.hpp:106
wmtk::attribute::TypedAttributeHandle< double >
wmtk::invariants::CollapseEnergyBeforeInvariantDouble
Definition:
CollapseEnergyBeforeInvariantDouble.hpp:8
wmtk::invariants::CollapseEnergyBeforeInvariantDouble::CollapseEnergyBeforeInvariantDouble
CollapseEnergyBeforeInvariantDouble(const Mesh &m, const attribute::TypedAttributeHandle< double > &coordinate, const attribute::TypedAttributeHandle< double > &energy, int64_t collapse_type=0)
Definition:
CollapseEnergyBeforeInvariantDouble.cpp:13
wmtk::invariants::CollapseEnergyBeforeInvariantDouble::m_energy_handle
const attribute::TypedAttributeHandle< double > m_energy_handle
Definition:
CollapseEnergyBeforeInvariantDouble.hpp:21
wmtk::invariants::CollapseEnergyBeforeInvariantDouble::m_coordinate_handle
const attribute::TypedAttributeHandle< double > m_coordinate_handle
Definition:
CollapseEnergyBeforeInvariantDouble.hpp:20
wmtk::invariants::CollapseEnergyBeforeInvariantDouble::m_collapse_type
const int64_t m_collapse_type
Definition:
CollapseEnergyBeforeInvariantDouble.hpp:22
wmtk::invariants::CollapseEnergyBeforeInvariantDouble::before
bool before(const simplex::Simplex &s) const override
Definition:
CollapseEnergyBeforeInvariantDouble.cpp:24
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::invariants
Definition:
CollapseEnergyBeforeInvariant.cpp:11
src
wmtk
invariants
CollapseEnergyBeforeInvariantDouble.hpp
Generated by
1.9.1