Lagrange
Loading...
Searching...
No Matches
UvMeshAdapter Struct Reference

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.
 

Detailed Description

Owning storage for an xatlas::UvMeshDecl derived from a Lagrange SurfaceMesh whose UV attribute is to be repacked.

Member Data Documentation

◆ face_materials

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.


The documentation for this struct was generated from the following files: