Wildmeshing Toolkit
Loading...
Searching...
No Matches
SimplexGetter.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <wmtk/Tuple.hpp>
5#include <optional>
6
7
8namespace wmtk::simplex {
9 class Simplex;
10}
11namespace wmtk::function::utils {
12
13template <typename T>
14
30std::tuple<std::vector<std::decay_t<typename attribute::ConstMapResult<T>>>, int64_t>
32 const Mesh& mesh,
33 const wmtk::attribute::Accessor<T>& accessor,
34 const PrimitiveType primitive_type,
35 const simplex::Simplex& simplex,
36 const std::optional<wmtk::Tuple>& vertex_marker = {});
37}
A CachingAccessor that uses tuples for accessing attributes instead of indices.
Definition Accessor.hpp:28
std::tuple< std::vector< std::decay_t< typename attribute::ConstMapResult< T > > >, int64_t > get_simplex_attributes(const Mesh &mesh, const wmtk::attribute::Accessor< T > &accessor, const PrimitiveType primitive_type, const simplex::Simplex &simplex_in, const std::optional< wmtk::Tuple > &vertex_marker)
get attributes from a simplex