C Specification
The XrSpatialEntityComponentDataTriangleMeshBD structure is defined as:
// Provided by XR_BD_spatial_sensing
typedef struct XrSpatialEntityComponentDataTriangleMeshBD {
    XrStructureType    type;
    void*              next;
    uint32_t           vertexCapacityInput;
    uint32_t           vertexCountOutput;
    XrVector3f*        vertices;
    uint32_t           indexCapacityInput;
    uint32_t           indexCountOutput;
    uint16_t*          indices;
} XrSpatialEntityComponentDataTriangleMeshBD;Members
The XrSpatialEntityComponentDataTriangleMeshBD is an output struct for
getting the triangle mesh component data from the snapshot.
This corresponds to an XrSpatialEntityComponentTypeBD value of
XR_SPATIAL_ENTITY_COMPONENT_TYPE_TRIANGLE_MESH_BD.
Description
The vertices array is a list of vertices described by the spatial
entity’s coordinate space.
The triangle vertices are in counter-clockwise order as viewed from the user
perspective.
The indices array defines the topology of the triangle mesh.
Each triplet of consecutive elements points to three vertices in the
vertices array and thus form a triangle.
Document Notes
For more information, see the OpenXR Specification
This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.
Copyright
Copyright 2014-2025 The Khronos Group Inc.
This work is licensed under a Creative Commons Attribution 4.0 International License.