SpatialSurfaceMesh SpatialSurfaceMesh SpatialSurfaceMesh SpatialSurfaceMesh SpatialSurfaceMesh Class


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

public : sealed class SpatialSurfaceMesh
struct winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMesh
public sealed class SpatialSurfaceMesh
Public NotInheritable Class SpatialSurfaceMesh
// This class does not provide a public constructor.

Windows 10 requirements

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


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.


CoordinateSystem CoordinateSystem CoordinateSystem CoordinateSystem CoordinateSystem

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

SurfaceInfo SurfaceInfo SurfaceInfo SurfaceInfo SurfaceInfo

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

TriangleIndices TriangleIndices TriangleIndices TriangleIndices TriangleIndices

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

VertexNormals VertexNormals VertexNormals VertexNormals VertexNormals

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.

VertexPositions VertexPositions VertexPositions VertexPositions VertexPositions

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

VertexPositionScale VertexPositionScale VertexPositionScale VertexPositionScale VertexPositionScale

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

See also