25#include <lagrange/SurfaceMesh.h>
26#include <lagrange/views.h>
46template <
typename Scalar,
typename Index,
typename UVScalar = Scalar>
48 const SurfaceMesh<Scalar, Index>& mesh,
49 std::string_view uv_attribute_name =
"");
64template <
typename Scalar,
typename Index,
typename UVScalar = Scalar>
66 const SurfaceMesh<Scalar, Index>& mesh,
67 std::string_view uv_attribute_name =
"");
82template <
typename Scalar,
typename Index,
typename UVScalar = Scalar>
84 SurfaceMesh<Scalar, Index>& mesh,
85 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
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:24
std::tuple< RowMatrixView< UVScalar >, 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:96
std::tuple< ConstRowMatrixView< UVScalar >, 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:72