First I modeled an hexagonal grid covering the surface of a torus. Then I pinched it in one side, and finally introduced a rotation for the section.
The basic torus was made with Openscad. Then used Python to change the corner's coordinates with a pinching-and-rotation transformation.
Pictures of a print by Shapeways.