Wildmeshing Toolkit
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 
8 
11 constexpr static Eigen::Index MAX_ATTR_SIZE = WMTK_MAX_ATTRIBUTE_DIMENSION;
12 
14 template <typename T, int R = Eigen::Dynamic>
15 using VectorResult = Eigen::Matrix<T, R, 1, 0, (R == Eigen::Dynamic ? MAX_ATTR_SIZE : R), 1>;
16 
20 template <typename T, int R = Eigen::Dynamic>
22 template <typename T, int R = Eigen::Dynamic>
24 
25 } // namespace wmtk::attribute::internal
#define WMTK_MAX_ATTRIBUTE_DIMENSION
Definition: MapTypes.hpp:4
typename VectorResult< T, R >::MapType MapResult
the default map type used by attributes is a map of our vector type.
Definition: MapTypes.hpp:21
typename VectorResult< T, R >::ConstMapType ConstMapResult
Definition: MapTypes.hpp:23
Eigen::Matrix< T, R, 1, 0,(R==Eigen::Dynamic ? MAX_ATTR_SIZE :R), 1 > VectorResult
Underlying vector type used by attribute is dynamically sized but bounded.
Definition: MapTypes.hpp:15