CoordinateInterpolator to HAnimDisplacer
Starting with the FACS examples, here: https://www.web3d.org/x3d/content/examples/HumanoidAnimation/FacialAnimation/index.html
We took the beginning points in the CoordinateInterpolators (weight = 0) and subtracted them from the end points in the CoordinateInterpolators (weight = 1). This became the displacement points in the HAnimDisplacer. A list of vectors (multiplied by the weight) to add to the beginning point, to get the current points in the animation. What the animation does is play the weight forward for half of the animation for weight 0 to 1, and then reverses it for weight 1 to 0.
For any zero length vector in the displacements point that had zero length, we removed the vector and the coordIndex pointing to it.
the code and results are here: https://github.com/coderextreme/ci2had with python folder being source code to take between different merges scenegraph scenarios, and resources folder for results.
