I have a simpler example and I see that its idea is similar to the above one.
Cut the vertices of a cube to form 8 small triangles and suppose the triangles are rigid but the faces are not. Then rotate the triangles, 4 of them clockwise and the rest counter-clockwise, in an alternating manner.
The images are drawn using Geogebra 3D.