SpatialSurfaceMesh 類別

定義

代表使用者周圍觀察到之表面的網格資料。

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 Platform::Object IInspectable SpatialSurfaceMesh
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v2.0 引進)

備註

SpatialSurfaceMesh 類別包含轉譯網格或處理物理所需的所有資訊,包括其頂點、索引和一般緩衝區。

由於此物件會讓緩衝區保持運作,因此當您不再需要網格或已將它轉換成您要快取的不同處理表單時,請務必將其刪除或釋放其參考。

屬性

CoordinateSystem

取得座標系統, 其中 VertexPositionsVertexNormals 緩衝區表示其座標。

SurfaceInfo

取得與這個網格相關聯的表面中繼資料。

TriangleIndices

取得緩衝區物件,表示網格的索引緩衝區。

VertexNormals

如果 IncludeVertexNormals 設定為 SpatialSurfaceInfo.TryComputeLatestMeshAsync呼叫中的網格選項,則取得代表網格一般緩衝區的緩衝區物件。 否則,此屬性為 null。

VertexPositions

取得緩衝區物件,表示網格的頂點緩衝區。

VertexPositionScale

取得您必須用來縮放 VertexPositions元素的縮放向量。

適用於

另請參閱