25#include <lagrange/SurfaceMesh.h>
26#include <lagrange/uv_mesh.h>
27#include <lagrange/views.h>
49template <
typename Scalar,
typename Index,
typename UVScalar = Scalar>
51 const SurfaceMesh<Scalar, Index>& mesh,
52 std::string_view uv_attribute_name =
"",
68template <
typename Scalar,
typename Index,
typename UVScalar = Scalar>
70 const SurfaceMesh<Scalar, Index>& mesh,
71 std::string_view uv_attribute_name =
"");
86template <
typename Scalar,
typename Index,
typename UVScalar = Scalar>
88 SurfaceMesh<Scalar, Index>& mesh,
89 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="", UVMeshOptions::ElementTypes element_types=UVMeshOptions::ElementTypes::IndexedOrVertex)
Get the ID of the UV attribute of a mesh.
Definition get_uv_attribute.cpp:25
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:117
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:93
ElementTypes
Supported element types for UV mesh extraction.
Definition uv_mesh.h:28
@ IndexedOrVertex
Only indexed/vertex attributes (zero-copy, no allocation).
Definition uv_mesh.h:29