.. _geometry-primitives-example:

###########################################################
Geometry: Create a Geometry Model with Geometric Primitives
###########################################################

A geometry model has a part data generator that can be used to tessellate various geometric primitives.

In this tutorial you will create your own geometry model parts and apply some part settings.

Create the following parts:

-   A box
-   A sphere
-   A cylinder

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


.. literalinclude:: ../../../../EnvisionDesktop/Tutorials/GeometryModelWithPrimitives.cpp
    :language: cpp
    :lines: 37-73