Rendering mesh inside a mesh.

Not long ago I’ve posted a question on Stackoverlfow Blender site:


asking how to render a part of mesh that’s inside of another mesh, but there was no correct answer how to achieve the effect?
So now I’m asking you. Perhaps here I can find somebody who could give a solution.