25#include <lagrange/SurfaceMesh.h>
26#include <lagrange/views.h>
42template <
typename Scalar,
typename Index>
44 const SurfaceMesh<Scalar, Index>& mesh,
45 std::string_view uv_attribute_name =
"");
55template <
typename Scalar,
typename Index>
57 const SurfaceMesh<Scalar, Index>& mesh,
58 std::string_view uv_attribute_name =
"");
68template <
typename Scalar,
typename Index>
70 SurfaceMesh<Scalar, Index>& mesh,
71 std::string_view uv_attribute_name =
"");
uint32_t AttributeId
Identified to be used to access an attribute.
Definition AttributeFwd.h:73
Eigen::Map< Vector< Scalar >, Eigen::Unaligned > VectorView
Type alias for row-major vector view.
Definition views.h:83
const Eigen::Map< const Vector< Scalar >, Eigen::Unaligned > ConstVectorView
Type alias for row-major const vector view.
Definition views.h:87
nullptr_t, size_t, ptrdiff_t basic_ostream bad_weak_ptr extent, remove_extent, is_array,...
Definition attribute_string_utils.h:21
std::tuple< RowMatrixView< Scalar >, VectorView< Index > > ref_uv_attribute(SurfaceMesh< Scalar, Index > &mesh, std::string_view uv_attribute_name="")
Get the modifiable UV attribute buffers of a mesh.
Definition get_uv_attribute.cpp:74
AttributeId get_uv_id(const SurfaceMesh< Scalar, Index > &mesh, std::string_view uv_attribute_name="")
Get the ID of the UV attribute of a mesh.
Definition get_uv_attribute.cpp:23
std::tuple< ConstRowMatrixView< Scalar >, ConstVectorView< Index > > get_uv_attribute(const SurfaceMesh< Scalar, Index > &mesh, std::string_view uv_attribute_name="")
Get the constant UV attribute buffers of a mesh.
Definition get_uv_attribute.cpp:50