@@ -0,0 +1,333 @@
+# Create the data.%0Afrom numpy import pi, sin, cos, mgrid,cosh%0A%0A%5Bu,v%5D = mgrid%5B0:2*pi +0.01:0.01,0:2*pi+0.1:0.1%5D%0Aa=1%0Ac=2%0A%0Ax =(c+a*cos(v))*cos(u)%0Ay =(c+a*cos(v))*sin(u)%0Az =a*sin(v)%0AK=cos(v)/(a*(c+a*cos(v)))%0A%0A%0Afrom mayavi import mlab%0As = mlab.mesh(x, y, z,scalars=K)%0Amlab.colorbar(s, orientation='horizontal',title='Gaussian Curvature')%0A

Create torus.py