.. _crosssections-example:

####################
Cross Sections
####################

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

Small example on mapping cross sections expansions on beam elements.

This example contains just 6 beams and we want the to be expanded into the cross section BAR. 
A BAR beam is defined by the following parameters:

- OffsetY
- OffsetZ
- Height
- WidthTop
- WidthBottom

We want the bars to be differently shaped and create 4 different cross sections of type BAR with different parameter
values and directions. We also change the eccentricities on 
the two last elements.

.. literalinclude:: ../../../../../../EnvisionDesktop/Examples/VTFx/VTFxCrossSections/VTFxCrossSections.cpp
    :language: cpp
    :lines: 51-232

