.. _vector-settings-example:

###################################################
UnstructGrid: Set Vector Settings on a Loaded Model
###################################################

The vector result can be configured to make a better visual appearance of your result data, 
for instance settings such as scaling and coloring.

This example will show the vector result on the model, and set some vector settings
for demonstration. 

-   Set the relative scaling to 0.2.
-   Set single vector color to yellow.

The demo model file (10x10x10.vtf) contains a simple geometry and a vector result. 

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


.. literalinclude:: ../../../../EnvisionDesktop/Tutorials/VectorSettings.cpp
    :language: cpp
    :lines: 39-100