The source code
Here, we provide a C++ program that applies three corrugations to an initial standard torus of revolution. It outputs the three corrugated tori as 3D meshes in VRML,VTK, POVRAY or OFF formats. The VRML format can be used for 3D printing. This program does not apply the fourth corrugation. The user may want to modify the source code for this task. However, a rather powerful computer is needed as 2 billions vertices were needed to produce the fourth corrugated mesh.
The program provided here is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.
The program has been tested on Linux and Mac, but should be platform independent. Note that we do not provide any support.
The 3D printing (image on the top right) of the square flat torus has been kindly realised by Gi-Nova.