Use a rendered tori as a reference when trying something like this. It makes everything a whole lot easier ;).
For outlining a layer, try alpha to selection, selection to path, stroke path? There's probably an easier way but that's all I can think of without looking at GIMP.