MakerBot Print is our newest print-prepration software, which supports native CAD files and STL assemblies,
allows you to interact with all your printers via the Cloud, and many other exciting new features.
I'm trying to extend my repertoire of tools so stuff like this is really useful to demonstrate a singe function or whatever. I wish i know were i could find more demos like this.
You might find this tweaked version of the code useful. It give the torus a smoother outline.
It's an imperfect solution at the moment because the spheres don't re-orientate themselves to the curve of the torus, but u get the idea.
c = 40.5; //angle seed
inc = 10; //increment size
smooth = 24;