Owning storage for an xatlas::MeshDecl derived from a Lagrange SurfaceMesh.
More...
#include <internal/mesh_to_xatlas.h>
|
|
::xatlas::MeshDecl | as_decl () const noexcept |
| | Build an xatlas::MeshDecl referencing this adapter's buffers.
|
| |
|
|
std::vector< float > | positions |
| | Float positions tightly packed (3 * vertex_count). Always copied/cast from input.
|
| |
|
std::vector< float > | normals |
| | Optional float normals tightly packed (3 * vertex_count). Empty if no normals supplied.
|
| |
|
std::vector< float > | uvs |
| | Optional float UV hints tightly packed (2 * vertex_count). Empty if no hints supplied.
|
| |
|
std::vector< uint32_t > | indices |
| | uint32 indices tightly packed (3 * facet_count for triangle-only meshes).
|
| |
|
uint32_t | vertex_count = 0 |
| | Number of vertices (after optional unify).
|
| |
|
uint32_t | face_count = 0 |
| | Number of facets.
|
| |
Owning storage for an xatlas::MeshDecl derived from a Lagrange SurfaceMesh.
Lifetime of all referenced buffers must extend at least until xatlas::AddMesh() returns; the recommended usage is to keep the MeshAdapter alive until AddMeshJoin() for safety.
The documentation for this struct was generated from the following files: