Sdílet prostřednictvím


MeshHelper.FlattenSkeleton Method

Note

This method is available only when developing for Windows.

Gets a flattened list of all bones contained by the specified skeleton.

Syntax

'Declaration
Public Shared Function FlattenSkeleton ( _
         skeleton As BoneContent _
) As IList(Of BoneContent) 
public static IList<BoneContent> FlattenSkeleton (
         BoneContent skeleton
)
public:
static IList<BoneContent> FlattenSkeleton(
         BoneContent skeleton
)

Parameters

Return Value

Type: IList<BoneContent>
List of bones for the animation skeleton.

Remarks

The tree is calculated using a depth–first traversal. The bones are returned in the same order used by ModelProcessor to convert BoneWeight vertex channels into the BlendIndices format.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics

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

See Also

Reference

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

Platforms

Windows 7, Windows Vista, Windows XP