14#include <lagrange/SurfaceMesh.h>
15#include <lagrange/views.h>
31template <
typename Scalar,
typename Index>
34 std::string_view uv_attribute_name =
"");
44template <
typename Scalar,
typename Index>
45std::tuple<ConstRowMatrixView<Scalar>, ConstRowMatrixView<Index>>
get_uv_attribute(
47 std::string_view uv_attribute_name =
"");
57template <
typename Scalar,
typename Index>
60 std::string_view uv_attribute_name =
"");
A general purpose polygonal mesh class.
Definition: SurfaceMesh.h:66
uint32_t AttributeId
Identified to be used to access an attribute.
Definition: AttributeFwd.h:73
nullptr_t, size_t, ptrdiff_t basic_ostream bad_weak_ptr extent, remove_extent, is_array,...
Definition: attribute_string_utils.h:21
std::tuple< ConstRowMatrixView< Scalar >, ConstRowMatrixView< 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
std::tuple< RowMatrixView< Scalar >, RowMatrixView< 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