14#include <lagrange/AttributeFwd.h>
15#include <lagrange/AttributeValueType.h>
16#include <lagrange/utils/span.h>
31 std::string_view name;
33 std::underlying_type_t<AttributeValueType> value_type = 0;
34 std::underlying_type_t<AttributeElement> element_type = 0;
35 std::underlying_type_t<AttributeUsage> usage = 0;
36 size_t num_channels = 0;
37 size_t num_elements = 0;
38 bool is_indexed =
false;
45 size_t values_num_elements = 0;
46 size_t values_num_channels = 0;
48 size_t indices_num_elements = 0;
49 uint8_t index_type_size = 0;
62 size_t num_vertices = 0;
63 size_t num_facets = 0;
64 size_t num_corners = 0;
69 std::vector<AttributeInfo> attributes;
uint32_t AttributeId
Identified to be used to access an attribute.
Definition AttributeFwd.h:73
::nonstd::span< T, Extent > span
A bounds-safe view for sequences of objects.
Definition span.h:27
nullptr_t, size_t, ptrdiff_t basic_ostream bad_weak_ptr extent, remove_extent, is_array,...
Definition attribute_string_utils.h:21
Metadata and raw byte views for a single serialized attribute.
Definition SurfaceMeshInfo.h:30
span< const uint8_t > data_bytes
Non-indexed attribute: raw data bytes (num_elements * num_channels * sizeof(ValueType)).
Definition SurfaceMeshInfo.h:41
span< const uint8_t > values_bytes
Indexed attribute: values and indices stored separately.
Definition SurfaceMeshInfo.h:44
Complete serialized mesh representation using standard types.
Definition SurfaceMeshInfo.h:58
uint8_t index_type_size
sizeof(Index): 4 for uint32_t, 8 for uint64_t.
Definition SurfaceMeshInfo.h:60
size_t vertex_per_facet
>0 for regular meshes, 0 for hybrid meshes.
Definition SurfaceMeshInfo.h:67
uint8_t scalar_type_size
sizeof(Scalar): 4 for float, 8 for double.
Definition SurfaceMeshInfo.h:59