VertexContent.PositionIndices Property (Microsoft.Xna.Framework.Content.Pipeline.Graphics)
Gets the list of position indices.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
- C#
- VB
- F#
public VertexChannel<int> PositionIndices { get; }
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Property Value
Type: VertexChannel<System.Int32>Position of the position index being retrieved.
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]]]
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows DirectX Desktop
Linux Desktop