14#include <lagrange/SurfaceMesh.h>
66template <
typename Scalar,
typename Index,
typename UVScalar = Scalar>
88template <
typename Scalar,
typename Index,
typename UVScalar = Scalar>
90 const SurfaceMesh<Scalar, Index>& mesh,
91 const UVMeshOptions& options = {});
107template <
typename Scalar,
typename Index,
typename UVScalar = Scalar>
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:73
std::optional< AttributeId > uv_attribute_id(const SurfaceMesh< Scalar, Index > &mesh, const UVMeshOptions &options={})
Check whether a UV attribute of a given scalar type exists on a mesh.
Definition uv_mesh.cpp:132
SurfaceMesh< UVScalar, Index > uv_mesh_view(const SurfaceMesh< Scalar, Index > &mesh, const UVMeshOptions &options={})
Extract a UV mesh view from an input mesh.
Definition uv_mesh.cpp:86
SurfaceMesh< UVScalar, Index > uv_mesh_ref(SurfaceMesh< Scalar, Index > &mesh, const UVMeshOptions &options={})
Extract a UV mesh reference from an input mesh.
Definition uv_mesh.cpp:40
Main namespace for Lagrange.
ElementTypes element_types
Supported element types for UV attribute lookup.
Definition uv_mesh.h:45
ElementTypes
Supported element types for UV mesh extraction.
Definition uv_mesh.h:29
@ IndexedOrVertex
Only indexed/vertex attributes (zero-copy, no allocation).
Definition uv_mesh.h:30
@ All
Also supports corner attributes (may allocate an index buffer).
Definition uv_mesh.h:31
std::string_view uv_attribute_name
Input UV attribute name.
Definition uv_mesh.h:39