Freigeben über


EnvironmentObservation Class

Declaration

struct winrt::Microsoft::Azure::ObjectAnchors::EnvironmentObservation

Description

Snapshot of observations of the environment, e.g. in the context of an ObjectQuery.

Methods

GetTriangleIndices

Returns triangle indices defining a mesh over the vertices. Will fail if triangles were not requested.

void GetTriangleIndices(winrt::array_view<uint32_t> indices);

Parameters

  • indices - Buffer to store triangle indices, allocated by the caller according to .

GetVertexNormals

Returns per-vertex normals observed in the environment.

void GetVertexNormals(winrt::array_view<Windows::Foundation::Numerics::float3> normals);

Parameters

  • normals - Buffer to store the normals, allocated by the caller according to .

GetVertexPositions

Returns positions of vertices observed in the environment.

void GetVertexPositions(winrt::array_view<Windows::Foundation::Numerics::float3> vertices);

Parameters

  • vertices - Buffer to store the vertexes, allocated by the caller according to .

Properties

LastUpdatedTime

Last updated time.

winrt::Windows::Foundation::DateTime LastUpdatedTime();

Origin

Origin of coordinate system used to report vertices, etc.

winrt::Microsoft::Azure::ObjectAnchors::SpatialGraph::SpatialGraphLocation Origin();

TriangleIndexCount

Index list length of triangles on surface mesh. May be zero if triangles were not requested.

uint32_t TriangleIndexCount();

VertexCount

Number of vertices observed.

uint32_t VertexCount();