
.. _two-triangles-example:

#############################################
UnstructGrid: Simple Model with Two Triangles 
#############################################

This example shows how to build a custom memory data source. 
The geometry is a simple structure containing two triangles only. 

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

.. literalinclude:: ../../../../EnvisionDesktop/Tutorials/UnstructGridModel.cpp
    :language: cpp
    :lines: 38-113