.. _cutiso-example:

#############################
Cutting Plane and Isosurface
#############################

.. image:: ../../../images/vtfx/cutiso_example.png
    :height: 250px
    :align: center

This example shows how to use the isosurface and cutting plane features in a VTFx file. 
Isosurfaces and cutting planes are set as case properties. 

-   Isosurface

    -   An isosurface is defined as an area with a constant result value (e.g. pressure, temperature, velocity, density) 
        within a volume of space. It is the 3D equivalent of a contour line.
    -   An isosurface is derived from a scalar result and a scalar value
    -   An isosurface can have (the same or another) scalar result shown as fringes on the surface
    -   An isosurface can also have a vector result shown on it

-   Cutting plane

    -   A cutting plane is defined by a point and a normal
    -   A cutting plane can have a scalar or vector result shown on it

This example creates a small part with a scalar result shown as fringes and adds an isosurface and a cutting plane.
The part is set transparent to make the isosurface and cutting plane viewable.

**Source file**

.. literalinclude:: ../../../../../../EnvisionDesktop/Examples/VTFx/VTFxCutIso/VTFxCutIso.cpp
    :language: cpp
    :lines: 42-262


**Header file**

.. literalinclude:: ../../../../../../EnvisionDesktop/Examples/VTFx/VTFxCutIso/VTFxCutIso.h
    :language: cpp
    :lines: 17-73
