Wildmeshing Toolkit
SimplexGetter.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <wmtk/Tuple.hpp>
5 #include <optional>
6 
7 
8 namespace wmtk::simplex {
9  class Simplex;
10 }
11 namespace wmtk::function::utils {
12 
13 template <typename T>
14 
30 std::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:25
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