.. _simple-example:

####################
Simple VTFx File
####################

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

Small VTFx file showing the use of results, multiple states and properties.

This example contains of two simple parts. The first part consists of a single hexahedron 
element and the second part of a single pyramid element. It is also set up with
three states and one scalar result. The scalar result is defined for both parts and for all
three states.

This example also uses properties for the following features:

-   Show the scalar result as fringes on the parts
-   Select all three states (to run an animation over all states)
-   Set the animation to start when the file is opened in a viewer
-   Set the initial camera position


.. literalinclude:: ../../../../../../EnvisionDesktop/Examples/VTFx/VTFxSimple/VTFxSimple.cpp
    :language: cpp
    :lines: 56-431

