Wildmeshing Toolkit
Loading...
Searching...
No Matches
Function.cpp
Go to the documentation of this file.
1#include "Function.hpp"
2
3#include <wmtk/Mesh.hpp>
4
5namespace wmtk::function {
6
8 : m_mesh(mesh)
9 , m_handle(handle)
10{
11 assert(handle.holds<double>() || handle.holds<Rational>());
12 assert(handle.is_same_mesh(m_mesh));
13}
14
16{
17 assert(m_handle.is_valid());
18
19 auto res = m_handle.dimension();
20 assert(res > 0);
21 return res;
22}
23
24
25} // namespace wmtk::function
int64_t embedded_dimension() const
Definition Function.cpp:15
Function(Mesh &mesh, const attribute::MeshAttributeHandle &handle)
Definition Function.cpp:7
attribute::MeshAttributeHandle m_handle
Definition Function.hpp:58