Wildmeshing Toolkit
MaxEdgeLengthInvariant.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
wmtk/attribute/MeshAttributeHandle.hpp
>
4
#include "
Invariant.hpp
"
5
6
namespace
wmtk
{
7
class
MaxEdgeLengthInvariant
:
public
Invariant
8
{
9
public
:
10
// NOTE: this takes in the threshold squared rather than the threshold itself
11
MaxEdgeLengthInvariant
(
12
const
Mesh
& m,
13
const
TypedAttributeHandle<double>
& coordinate,
14
double
threshold_squared);
15
bool
before
(
const
simplex::Simplex
& t)
const override
;
16
17
private
:
18
const
TypedAttributeHandle<double>
m_coordinate_handle
;
19
double
m_threshold_squared
;
20
};
21
}
// namespace wmtk
Invariant.hpp
MeshAttributeHandle.hpp
wmtk::MaxEdgeLengthInvariant
Definition:
MaxEdgeLengthInvariant.hpp:8
wmtk::MaxEdgeLengthInvariant::MaxEdgeLengthInvariant
MaxEdgeLengthInvariant(const Mesh &m, const TypedAttributeHandle< double > &coordinate, double threshold_squared)
Definition:
MaxEdgeLengthInvariant.cpp:6
wmtk::MaxEdgeLengthInvariant::m_coordinate_handle
const TypedAttributeHandle< double > m_coordinate_handle
Definition:
MaxEdgeLengthInvariant.hpp:18
wmtk::MaxEdgeLengthInvariant::before
bool before(const simplex::Simplex &t) const override
Definition:
MaxEdgeLengthInvariant.cpp:14
wmtk::MaxEdgeLengthInvariant::m_threshold_squared
double m_threshold_squared
Definition:
MaxEdgeLengthInvariant.hpp:19
wmtk::Mesh
Definition:
Mesh.hpp:107
wmtk::attribute::TypedAttributeHandle
Handle that represents attributes for some mesh.
Definition:
TypedAttributeHandle.hpp:28
wmtk::invariants::Invariant
Definition:
Invariant.hpp:12
wmtk::simplex::Simplex
Definition:
Simplex.hpp:22
wmtk
Definition:
Accessor.hpp:6
src
wmtk
invariants
MaxEdgeLengthInvariant.hpp
Generated by
1.9.1