# 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

1. The cut tool (manipulating the mesh)
2. Cutting the mesh with the camera (placing an orthographic camera inside the mesh) but limiting view options
3. 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.

• Why not use a boolean modifier enabled only for rendering?
– gandalf3
Sep 1 '13 at 6:48
• oha thanks thats a nice idea. At octree 9 at least the viewport will be smooth Sep 1 '13 at 6:50
• What do you need the remesh for? If you only use the boolean for rendering, you don't have to worry about topology.
– gandalf3
Sep 1 '13 at 6:53
• the Mesh is not closed therefore the boolean modifier does not work without the remesh Sep 1 '13 at 6:55
• I have updated my answer with another solution. I'm not sure how freestyle could help much with this problem, but I am still only learning the basics.. Another option is to make the mesh manifold manually or by applying the Remesh modifier. (or simply disable it in the viewport)
– gandalf3
Sep 4 '13 at 1:07

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:

1. UV unwrap using U> project from view:

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

# Blender Internal:

1. Enable Z transparency in Material settings → Transparency, and set alpha to 0:
2. To make the texture to affect the transparency of the material, enable Alpha in Texture settings → influence:

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

e.g with a boolean modifier:

• Why the down vote? Is there something wrong / inaccurate with my answer? Please say why so I can improve it.
– gandalf3
Sep 4 '13 at 19:14

I did the following:

• Place a camera at 90° to the plane to which you want to have the cut
• Select the camera
• Under the camera settings, adjust the clipping start value

See how the result changes in the preview (and also in the render) when increasing the clipping start.

Clipping value 0.1 (as usual):

Clipping value 10.2:

Output in case of freestyle rendering: