Click or drag to resize
DigitalRuneSkeleton Constructor
Initializes a new instance of the Skeleton class.

Namespace: DigitalRune.Animation.Character
Assembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public Skeleton(
	IList<int> boneParents,
	IList<string> boneNames,
	IList<SrtTransform> bindPosesRelative
)

Parameters

boneParents
Type: System.Collections.GenericIListInt32
The bone parents. This list contains one entry per bone. The list element is the parent bone index for each bone. If a bone has no parent, the array should contain -1.
boneNames
Type: System.Collections.GenericIListString
The bone names. This list contains one entry per bone. The list element is the name of the bone or if the bone is unnamed.
bindPosesRelative
Type: System.Collections.GenericIListSrtTransform
The bind poses. This list contains one entry per bone. The list element is the bone pose transformation relative to the parent bone.
Exceptions
ExceptionCondition
ArgumentNullExceptionboneParents, boneNames or bindPosesRelative is .
ArgumentException Either the given lists are empty, have different length, or the boneParents are invalid (parent bones must come be before their child bones).
Remarks
The bone data must be specified in lists. The index in the list is the bone index. The bones must be sorted so that parent bones come before their child bones.
See Also