SpatialSurfaceMesh.VertexPositions 属性

定义

获取表示网格顶点缓冲区的缓冲区对象。

public:
 property SpatialSurfaceMeshBuffer ^ VertexPositions { SpatialSurfaceMeshBuffer ^ get(); };
SpatialSurfaceMeshBuffer VertexPositions();
public SpatialSurfaceMeshBuffer VertexPositions { get; }
var spatialSurfaceMeshBuffer = spatialSurfaceMesh.vertexPositions;
Public ReadOnly Property VertexPositions As SpatialSurfaceMeshBuffer

属性值

网格缓冲区。

注解

请注意,若要获取正确的顶点位置,必须根据 VertexPositionScale 属性缩放坐标。 如果在使用这些坐标之前将这些坐标转换为另一个坐标系,则可以从 VertexPositionScale 向量创建比例矩阵,并将其作为转换链中的第一个矩阵包含在内。

如果在调用 SpatialSurfaceInfo.TryComputeLatestMeshAsync 时将 SpatialSurfaceMeshOptions.VertexPositionFormat 设置为一个选项,则将按指示的格式生成此缓冲区。

适用于