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