Answers for "Generate cylindrical mesh around 3D Catmull-rom spline"
http://answers.unity.com/questions/867023/generate-cylindrical-mesh-around-3d-catmull-rom-sp.html
The latest answers for the question "Generate cylindrical mesh around 3D Catmull-rom spline"Answer by MakeCodeNow
http://answers.unity.com/answers/867800/view.html
Take your normalized direction/tangent vector and cross product it with any non-parallel vector (like global up). Normalize the result to get one of the spline local axes. Then, cross that axis with the original normalized direction/tangent vector and you have the other axis. Congratulations, you now have the three axes of a spline point local matrix.
Lots more info [on Wikipedia][1]
[1]: http://en.wikipedia.org/wiki/Frenet%E2%80%93Serret_formulasSat, 03 Jan 2015 06:27:15 GMTMakeCodeNow