Wildmeshing Toolkit
Loading...
Searching...
No Matches
MapTypes.hpp
Go to the documentation of this file.
1#pragma once
2#include <Eigen/Core>
3#ifndef WMTK_MAX_ATTRIBUTE_DIMENSION
4#define WMTK_MAX_ATTRIBUTE_DIMENSION Eigen::Dynamic
5#endif
6
7namespace wmtk::attribute {
8namespace internal {
9
12constexpr static Eigen::Index MAX_ATTR_SIZE = WMTK_MAX_ATTRIBUTE_DIMENSION;
13
15template <typename T, int R = Eigen::Dynamic>
16using VectorType = Eigen::Matrix<T, R, 1, 0, (R == Eigen::Dynamic ? MAX_ATTR_SIZE : R), 1>;
17}
18
22template <typename T, int R = Eigen::Dynamic>
24template <typename T, int R = Eigen::Dynamic>
26
27} // namespace wmtk::attribute::internal
#define WMTK_MAX_ATTRIBUTE_DIMENSION
Definition MapTypes.hpp:4
Eigen::Matrix< T, R, 1, 0,(R==Eigen::Dynamic ? MAX_ATTR_SIZE :R), 1 > VectorType
Underlying vector type used by attribute is dynamically sized but bounded.
Definition MapTypes.hpp:16
typename internal::VectorType< T, R >::ConstMapType ConstMapResult
Definition MapTypes.hpp:25
typename internal::VectorType< T, R >::MapType MapResult
the default map type used by attributes is a map of our vector type.
Definition MapTypes.hpp:23