The bones are rotated with quaternions.
The angle between the two PC1 vectors is taken. The object is then rotated (by a quaternion) around the cross product between the PC1 vectors.
The new angles between the next PCs are calculates and the process is repeated for the other PCs