.. _cutting-plane-example:

####################################################################
UnstructGrid: Create a Cutting Plane with a Scalar Result as Fringes
####################################################################

Cutting planes are slices through the structure onto which scalar and vector fields can be 
visualized. By dynamically changing the position and orientation of the cutting plane, you can 
quickly analyze the results inside the system.

This example shows how to create a cutting plane and show a scalar result mapped to the surface.
To see the cutting plane, the part will be set transparent.

The demo file (30x30x30.vtf) contains a single part geometry with a synthetic scalar result. 

.. image:: ../images/tut_cuttingplane.png
    :height: 300 
    :align: center


.. literalinclude:: ../../../../EnvisionDesktop/Tutorials/CuttingPlane.cpp
    :language: cpp
    :lines: 40-103