Render a cut through a mesh I would like to render a cut through an object using Freestyle. Is there a neat way to cut away a part of the mesh in the rendering (not for real) without using


The cut tool (manipulating the mesh)
Cutting the mesh with the camera (placing an orthographic camera inside the mesh) but limiting view options
I got the boolean modifier to work with a remesh modifier as well, making things more complicated.


I was looking for something similar to the AltB option in the viewport. Or setting up a material on another object to render the intersection part invisible but leave the rest of the mesh visible.
One way of doing this without modifying the actual mesh at all is to use a texture to define the transparency of the mesh:

Cycles:



To create something similar to the AltB option, you could:


UV unwrap using U> project from view:


Use the UV coordinates to define the transparency of the mesh by using this nodegroup:






Blender Internal:


Enable Z transparency in Material settings &rarr; Transparency, and set alpha to 0:
  
To make the texture to affect the transparency of the material, enable Alpha in Texture settings &rarr; influence:



Another way to do this is by modifying the mesh only when rendered.

e.g with a boolean modifier: