A rework of the AnimatedMesh class.