torus script from online

source: http://forum.unity3d.com/threads/8487-Torus-in-Unity