Wildmeshing Toolkit
Loading...
Searching...
No Matches
EdgeValenceEnergy.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <
wmtk/function/PerSimplexFunction.hpp
>
3
4
namespace
wmtk
{
5
class
TriMesh;
6
}
7
8
namespace
wmtk::function
{
9
10
class
EdgeValenceEnergy
:
public
PerSimplexFunction
11
{
12
public
:
13
EdgeValenceEnergy
(
14
const
Mesh
&
mesh
,
15
const
attribute::MeshAttributeHandle
& variable_attribute_handle);
16
double
get_value
(
const
simplex::Simplex
& simplex)
const override
;
17
using
PerSimplexFunction::get_value
;
18
19
protected
:
20
const
TriMesh
&
tri_mesh
()
const
;
21
};
22
}
// namespace wmtk::function
PerSimplexFunction.hpp
wmtk::Mesh
Definition
Mesh.hpp:95
wmtk::TriMesh
Definition
TriMesh.hpp:19
wmtk::attribute::MeshAttributeHandle
Definition
MeshAttributeHandle.hpp:28
wmtk::function::EdgeValenceEnergy
Definition
EdgeValenceEnergy.hpp:11
wmtk::function::EdgeValenceEnergy::tri_mesh
const TriMesh & tri_mesh() const
Definition
EdgeValenceEnergy.cpp:72
wmtk::function::EdgeValenceEnergy::get_value
double get_value(const simplex::Simplex &simplex) const override
This function is defined over a simplex (normally a triangle or tetrahedron).
Definition
EdgeValenceEnergy.cpp:13
wmtk::function::PerSimplexFunction
Definition
PerSimplexFunction.hpp:12
wmtk::function::PerSimplexFunction::get_value
virtual double get_value(const simplex::Simplex &domain_simplex) const =0
This function is defined over a simplex (normally a triangle or tetrahedron).
wmtk::function::PerSimplexFunction::mesh
const Mesh & mesh() const
Definition
PerSimplexFunction.hpp:41
wmtk::simplex::Simplex
Definition
Simplex.hpp:22
wmtk::function
Definition
Function.cpp:5
wmtk
Definition
Accessor.hpp:6
src
wmtk
function
simplex
EdgeValenceEnergy.hpp
Generated by
1.9.8