.. _isosurface-example:

##################################
UnstructGrid: Create an Isosurface 
##################################

An isosurface is a surface defined of an area with a constant value within a volume of space.
Several visual settings can be applied to the isosurface, such as mapped fringes, visibility and
highlighting.

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

The demo file (contact.vtfx) contains a simple model with various results. In this tutorial you will '
create an isosurface for the "All displacements" result with iso scalar value == 6.5 for time step 4.

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


.. literalinclude:: ../../../../EnvisionDesktop/Tutorials/Isosurface.cpp
    :language: cpp
    :lines: 40-102