SpatialSurfaceInfo.TryComputeLatestMeshAsync Method

Definition

Overloads

TryComputeLatestMeshAsync(Double)

Generates a mesh object and its vertex and index buffers for this surface. This chooses the most detailed mesh that does not exceed the specified triangle density, in triangles per cubic meter.

TryComputeLatestMeshAsync(Double, SpatialSurfaceMeshOptions)

Generates a mesh object and its vertex and index buffers for this surface, with the specified mesh generation options. This chooses the most detailed mesh that does not exceed the specified triangle density, in triangles per cubic meter.

TryComputeLatestMeshAsync(Double)

Generates a mesh object and its vertex and index buffers for this surface. This chooses the most detailed mesh that does not exceed the specified triangle density, in triangles per cubic meter.

public:
 virtual IAsyncOperation<SpatialSurfaceMesh ^> ^ TryComputeLatestMeshAsync(double maxTrianglesPerCubicMeter) = TryComputeLatestMeshAsync;
/// [Windows.Foundation.Metadata.Overload("TryComputeLatestMeshAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<SpatialSurfaceMesh> TryComputeLatestMeshAsync(double const& maxTrianglesPerCubicMeter);
[Windows.Foundation.Metadata.Overload("TryComputeLatestMeshAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<SpatialSurfaceMesh> TryComputeLatestMeshAsync(double maxTrianglesPerCubicMeter);
function tryComputeLatestMeshAsync(maxTrianglesPerCubicMeter)
Public Function TryComputeLatestMeshAsync (maxTrianglesPerCubicMeter As Double) As IAsyncOperation(Of SpatialSurfaceMesh)

Parameters

maxTrianglesPerCubicMeter
Double

double

The maximum triangle density that the app can accept, in triangles per cubic meter.

Returns

The operation that triggers once the mesh is ready.

Attributes

Remarks

Note that this method does not retrieve the specific mesh that was most current as of the UpdateTime property. Instead, the system's latest mesh data for this surface Id is always returned.

This method may return null if the mesh now contains no triangles or if the surface has since been removed.

See also

Applies to

TryComputeLatestMeshAsync(Double, SpatialSurfaceMeshOptions)

Generates a mesh object and its vertex and index buffers for this surface, with the specified mesh generation options. This chooses the most detailed mesh that does not exceed the specified triangle density, in triangles per cubic meter.

public:
 virtual IAsyncOperation<SpatialSurfaceMesh ^> ^ TryComputeLatestMeshAsync(double maxTrianglesPerCubicMeter, SpatialSurfaceMeshOptions ^ options) = TryComputeLatestMeshAsync;
/// [Windows.Foundation.Metadata.Overload("TryComputeLatestMeshWithOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<SpatialSurfaceMesh> TryComputeLatestMeshAsync(double const& maxTrianglesPerCubicMeter, SpatialSurfaceMeshOptions const& options);
[Windows.Foundation.Metadata.Overload("TryComputeLatestMeshWithOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<SpatialSurfaceMesh> TryComputeLatestMeshAsync(double maxTrianglesPerCubicMeter, SpatialSurfaceMeshOptions options);
function tryComputeLatestMeshAsync(maxTrianglesPerCubicMeter, options)
Public Function TryComputeLatestMeshAsync (maxTrianglesPerCubicMeter As Double, options As SpatialSurfaceMeshOptions) As IAsyncOperation(Of SpatialSurfaceMesh)

Parameters

maxTrianglesPerCubicMeter
Double

double

The maximum triangle density that the app can accept, in triangles per cubic meter.

options
SpatialSurfaceMeshOptions

The mesh generation options.

Returns

The operation that triggers once the mesh is ready.

Attributes

See also

Applies to