|
Lagrange
|
Owning storage for an xatlas::UvMeshDecl derived from a Lagrange SurfaceMesh whose UV attribute is to be repacked.
More...
#include <internal/mesh_to_xatlas.h>
Public Member Functions | |
| ::xatlas::UvMeshDecl | as_decl () const noexcept |
Build an xatlas::UvMeshDecl referencing this adapter's buffers. | |
Public Attributes | |
| std::vector< float > | uvs |
| Float UV values tightly packed (2 * vertex_count). | |
| std::vector< uint32_t > | indices |
| uint32 indices tightly packed (3 * facet_count). | |
| std::vector< uint32_t > | face_materials |
Optional per-face chart ids (size == face_count) forwarded to xatlas as faceMaterialData to pin input islands to charts. | |
| uint32_t | vertex_count = 0 |
| Number of UV "vertices" (= number of unique indexed UV values). | |
| uint32_t | face_count = 0 |
| Number of triangles. | |
Owning storage for an xatlas::UvMeshDecl derived from a Lagrange SurfaceMesh whose UV attribute is to be repacked.
| std::vector<uint32_t> face_materials |
Optional per-face chart ids (size == face_count) forwarded to xatlas as faceMaterialData to pin input islands to charts.
Empty if no chart attribute was given.