# How to mathematically define a torus in a volume

Using the node editor and Cycles, how can I define a material that looks like a torus? This is useful in order to render a really smooth torus, without needing to a bazillion vertices.