14#include <lagrange/SurfaceMesh.h>
65template <
typename Scalar,
typename Index,
typename UVScalar = Scalar>
87template <
typename Scalar,
typename Index,
typename UVScalar = Scalar>
89 const SurfaceMesh<Scalar, Index>& mesh,
90 const UVMeshOptions& options = {});
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:73
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:44
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
@ All
Also supports corner attributes (may allocate an index buffer).
Definition uv_mesh.h:30
std::string_view uv_attribute_name
Input UV attribute name.
Definition uv_mesh.h:38