It borrows from Mike William's sweepmesh.inc (which was itself based on an idea of mine). This one is an improvement in that it allows one to choose multiple different splines as cross sections along the length. It also automatically closes at the beginning and the end.
The macro to construct the mesh is here.
That scene file doesn't involve this walking movement, which is from my earlier work.