What is the best way to create this shape?

It is also in the Collection of examples from discourse.threejs.org

see AnimatedConveyorBelt