.. _part-settings-example:

############################################
UnstructGrid: Apply Part Settings to a Model
############################################

Each part has part settings that can be configured to make a better visual appearance of your data, 
for instance settings such as visibility, draw style, coloring, highlighting and result visibility.

The demo file (contact.vtfx) contains a geometry with four parts. This example shows 
how to set the following settings on these parts:

-   Part 1: Set invisible
-   Part 2: Set color to red
-   Part 3: Set draw style surface mesh
-   Part 4: Set transparent

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


.. literalinclude:: ../../../../EnvisionDesktop/Tutorials/PartSettings.cpp
    :language: cpp
    :lines: 38-104