Share via


VertexContent.PositionIndices Property

Note

This property is available only when developing for Windows.

Gets the list of position indices.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

Syntax

public VertexChannel<int> PositionIndices { get; }

Property Value

Position of the position index being retrieved.

Remarks

This list adds a level of indirection between the actual triangle indices and the Positions member of the parent. This indirection preserves the topological vertex identity in cases where a single vertex position is used by triangles that straddle a discontinuity in some other data channel.

For example, the following code gets the position of the first vertex of the first triangle in a GeometryContent object:

parent.Positions[Vertices.PositionIndices[Indices[0]]]

See Also

Reference

VertexContent Class
VertexContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP