Outlining objects that wrap around eachother

I have a client that wants a toon style anatomy animation. He was specific about each object having a black outline, but he was not happy with the lines that are put inside the object’s bounds when I used freestyle.

I tried using the compositor with each object on its own render layer, adding an outline for each layer, then stacking them using the alpha over node. This fails because different body parts wrap around others (both in front and behind.) Also, if I rotate the camera to the opposite side, then all of my alpha overs are backwards.

Can anyone think of a good solution?



After a little reading, I found that this can be done using freestyle’s options found in the render layers panel. I switched off all of the edge types except contour and that did the trick.