construct_skeleton
Constructs a skeleton geometry with only the properties that are required for a valid skeleton structure.
Inputs
joint_parent_index
The array<uint>
containing the joint's parent index values, defining the parent joint's position in the data arrays.
The ordering of joints is relatively flexible, however, one has to ensure that a joint's parent precede its position in the joint_parent_index
data array.
If a joint is a root or is isolated, its parent index value must be equal to the value returned by the invalid_index
node. The following code snippet summarizes the validation of each joint_parent_index
values.
valid = joint_parent_index[i] < i || joint_parent_index[i] == 4294967295
joint_pivot_matrix
The array<double4x4>
containing the joint's pivot matrix values, defining the joint transform's rest state in world space. It defines the space in which scaling, rotation, and translation occur.
This is usually a static input.
Outputs
skeleton
The resulting skeleton.