Surface Mesh Class
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)] [Windows.Foundation.Metadata.GCPressure] [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)] [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)] public sealed class SpatialSurfaceMesh
Public NotInheritable Class SpatialSurfaceMesh
Object IInspectable SpatialSurfaceMesh
Windows 10 (introduced in 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
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 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.