| Skeleton Constructor |
Initializes a new instance of the
Skeleton class.
Namespace: DigitalRune.Animation.CharacterAssembly: 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
)
Public Sub New (
boneParents As IList(Of Integer),
boneNames As IList(Of String),
bindPosesRelative As IList(Of SrtTransform)
)
public:
Skeleton(
IList<int>^ boneParents,
IList<String^>^ boneNames,
IList<SrtTransform>^ bindPosesRelative
)
new :
boneParents : IList<int> *
boneNames : IList<string> *
bindPosesRelative : IList<SrtTransform> -> Skeleton
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 Exception | Condition |
---|
ArgumentNullException | boneParents, 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