Share via

SpatialSurfaceMesh Class


Represents the mesh data for a surface observed in the user's surroundings.

public ref class SpatialSurfaceMesh sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
/// [Windows.Foundation.Metadata.GCPressure]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SpatialSurfaceMesh final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
public sealed class SpatialSurfaceMesh
Public NotInheritable Class SpatialSurfaceMesh
Object Platform::Object IInspectable SpatialSurfaceMesh

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)


The SpatialSurfaceMesh class contains all of the information you need to render the mesh or process it for physics, including its vertex, index and normal buffers.

Because this object keeps its buffers alive, you should be sure to delete it or release references to it when you either no longer need the mesh or have already transformed it into a different processed form that you are caching instead.



Gets the coordinate system in which the VertexPositions and VertexNormals buffers express their coordinates.


Gets the surface metadata that's associated with this mesh.


Gets the buffer object representing the mesh's index buffer.


Gets the buffer object representing the mesh's normal buffer, if IncludeVertexNormals was set as a mesh option in the call to SpatialSurfaceInfo.TryComputeLatestMeshAsync. Otherwise, this property is null.


Gets the buffer object representing the mesh's vertex buffer.


Gets the scale vector that you must use to scale the elements of VertexPositions.

Applies to

See also