Fixing the rotation and translation on the mesh