Delen via


SpatialSurfaceMesh.VertexPositions Property

Definition

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

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

Property Value

The mesh buffer.

Remarks

Note that to get correct vertex positions, coordinates must be scaled according to the VertexPositionScale property. If you are otherwise transforming these coordinates to another coordinate system before using them anyway, you can make a scale matrix from the VertexPositionScale vector and include that as the first matrix in your transform chain.

If SpatialSurfaceMeshOptions.VertexPositionFormat is set as an option in the call to SpatialSurfaceInfo.TryComputeLatestMeshAsync, this buffer will be generated in the format indicated.

Applies to