Rendering solid edges on model

Hello.

I am looking for suggestions on a way to render the visible edges of a model with a black line.

i.e. From this:

to this:

Any suggestions or starting points?

Thanks in advance