Rotation to rotationQuaternion


We can set either rotation or rotationQuaternion for a mesh.
I have implemented my logic with an assumption that all meshes will have rotationQuaternion (Because all the exporters are exporting meshes with rotationQuaternion set). Now I come across few models where rotation is specified. Not rotationQuaternion.

How can I compute rotationQuaternion from rotation?

Thanks in advance.

Here in the docs Euler Angles and Quaternions - Babylon.js Documentation