The source code

Computer renderings (left and center) and 3D printing (right) of a flat torus

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 source code is based on the Blitz++ library and is using the C++ version (coded by Blake Ashby) of Hairer's solver for the nonstiff integrator DOPRI5. Our C++ code is available here : hevea.tgz.

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.