3.2.3
Export Functions

Functions for export of wings/fuselages. More...

Functions for export of wings/fuselages.

VTK-Export

There a various different VTK exports functions in TIGL. All functions starting with 'tiglExportVTK[Fuselage|Wing]...' are exporting a special triangulation with no duplicated points into a VTK file formated in XML (file extension .vtp) with some custom informations added to the file.

In addition to the triangulated geometry, additional data are written to the VTK file. These data currently include:

Please note that at this time these information are only valid for wings!

There are two ways, how these additional data are attached to the VTK file. The first is the official VTK way to declare additional data for each polygon/triangle. For each data entry, a <DataArray> tag is added under the xpath

    /VTKFile/PolyData/Piece/CellData

Each CellData contains a vector(list) of values, each of them corresponding the data of one triangle. For example the data entry for the wing segment eta coordinates for 4 triangles looks like.

    <DataArray type="Float64" Name="eta" NumberOfComponents="1"
        format="ascii" RangeMin="0.000000" RangeMax="1.000000">
            0.25 0.5 0.75 1.0
    </DataArray>

The second way these data are stored is by using the "MetaData" mechanism of VTK. Here, a <MetaData> tag is added under the xpath

    /VTKFile/PolyData/Piece/Polys

A typical exported MetaData tag looks like the following:

    <MetaData elements="uID segmentIndex eta xsi isOnTop">
      "rootToInnerkink" 1 3.18702 0.551342 0
      "rootToInnerkink" 1 2.93939 0.581634 0
      "rootToInnerkink" 1 4.15239 0.520915 0
      ...
    </MetaData>

The 'elements' attribute indicates the number and the names of the additional information tags as a whitespace separated list. In this example you could see 5 information fields with the name.