.. _isovolume-example:

#################################
UnstructGrid: Create an Isovolume
#################################

An isovolume is defined as the combined volume of the element model where the scalar field is 
between a given minimum and maximum value. The surface of the isovolume will be the hull of this volume.
Several visual settings can be applied to the isovolume, such as mapped fringes, visibility and
highlighting.

This example shows how to create an isovolume based on a scalar result id and a minimum and a maximum scalar value.
In addition, the scalar result will also be shown as fringes on the isovolume.

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


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