3.0.0
Export Functions

Functions

TiglReturnCode tiglExportComponent (TiglCPACSConfigurationHandle cpacsHandle, const char *uid, const char *fileName, double deflection)
 Exports a geometric component (e.g. a wing, a fuselage etc.) More...
 
TiglReturnCode tiglExportConfiguration (TiglCPACSConfigurationHandle cpacsHandle, const char *fileName, TiglBoolean fuseAllShapes, double deflection)
 Exports the whole configuration into a file. More...
 
TiglReturnCode tiglExportFusedBREP (TiglCPACSConfigurationHandle cpacsHandle, const char *filename)
 Exports the fused/trimmed geometry of a CPACS configuration to BREP format. More...
 
TiglReturnCode tiglExportFusedSTEP (TiglCPACSConfigurationHandle cpacsHandle, const char *filenamePtr)
 Exports the fused/trimmed geometry of a CPACS configuration to STEP format. More...
 
TiglReturnCode tiglExportFusedWingFuselageIGES (TiglCPACSConfigurationHandle cpacsHandle, const char *filenamePtr)
 Exports the boolean fused geometry of a CPACS configuration to IGES format. More...
 
TiglReturnCode tiglExportFuselageBREPByUID (TiglCPACSConfigurationHandle cpacsHandle, const char *fuselageUID, const char *filename)
 Exports the boolean fused geometry of a fuselage (selected by uid) to BREP format. More...
 
TiglReturnCode tiglExportFuselageColladaByUID (const TiglCPACSConfigurationHandle cpacsHandle, const char *fuselageUID, const char *filename, double deflection)
 Exports the boolean fused geometry of a fuselage (selected by uid) meshed to Collada (*.dae) format. More...
 
TiglReturnCode tiglExportIGES (TiglCPACSConfigurationHandle cpacsHandle, const char *filenamePtr)
 Exports the geometry of a CPACS configuration to IGES format. More...
 
TiglReturnCode tiglExportMeshedFuselageSTL (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, const char *filenamePtr, double deflection)
 Exports the boolean fused geometry of a fuselage meshed to STL format. More...
 
TiglReturnCode tiglExportMeshedFuselageSTLByUID (TiglCPACSConfigurationHandle cpacsHandle, const char *fuselageUID, const char *filenamePtr, double deflection)
 Exports the boolean fused geometry of a fuselage meshed to STL format. More...
 
TiglReturnCode tiglExportMeshedFuselageVTKByIndex (const TiglCPACSConfigurationHandle cpacsHandle, const int fuselageIndex, const char *filenamePtr, double deflection)
 Exports the boolean fused geometry of a fuselage (selected by index) meshed to VTK format. More...
 
TiglReturnCode tiglExportMeshedFuselageVTKByUID (const TiglCPACSConfigurationHandle cpacsHandle, const char *fuselageUID, const char *filenamePtr, double deflection)
 Exports the boolean fused geometry of a fuselage (selected by uid) meshed to VTK format. More...
 
TiglReturnCode tiglExportMeshedGeometrySTL (TiglCPACSConfigurationHandle cpacsHandle, const char *filenamePtr, double deflection)
 Exports the boolean fused geometry of the whole configuration meshed to STL format. More...
 
TiglReturnCode tiglExportMeshedGeometryVTK (const TiglCPACSConfigurationHandle cpacsHandle, const char *filenamePtr, double deflection)
 Exports the boolean fused geometry of the whole configuration meshed to VTK format. More...
 
TiglReturnCode tiglExportMeshedGeometryVTKSimple (const TiglCPACSConfigurationHandle cpacsHandle, const char *filenamePtr, double deflection)
 Exports the boolean fused geometry of the whole configuration meshed to VTK format. More...
 
TiglReturnCode tiglExportMeshedWingSTL (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, const char *filenamePtr, double deflection)
 Exports the boolean fused geometry of a wing meshed to STL format. More...
 
TiglReturnCode tiglExportMeshedWingSTLByUID (TiglCPACSConfigurationHandle cpacsHandle, const char *wingUID, const char *filenamePtr, double deflection)
 Exports the boolean fused geometry of a wing meshed to STL format. More...
 
TiglReturnCode tiglExportMeshedWingVTKByIndex (const TiglCPACSConfigurationHandle cpacsHandle, const int wingIndex, const char *filenamePtr, const double deflection)
 Exports the boolean fused geometry of a wing (selected by id) meshed to VTK format. More...
 
TiglReturnCode tiglExportMeshedWingVTKByUID (const TiglCPACSConfigurationHandle cpacsHandle, const char *wingUID, const char *filenamePtr, double deflection)
 Exports the boolean fused geometry of a wing (selected by UID) meshed to VTK format. More...
 
TiglReturnCode tiglExportMeshedWingVTKSimpleByUID (const TiglCPACSConfigurationHandle cpacsHandle, const char *wingUID, const char *filenamePtr, double deflection)
 Exports the boolean fused geometry of a wing (selected by UID) meshed to VTK format. More...
 
TiglReturnCode tiglExportSTEP (TiglCPACSConfigurationHandle cpacsHandle, const char *filenamePtr)
 Exports the geometry of a CPACS configuration to STEP format. More...
 
TiglReturnCode tiglExportWingBREPByUID (TiglCPACSConfigurationHandle cpacsHandle, const char *wingUID, const char *filename)
 Exports the boolean fused geometry of a wing (selected by uid) to BREP format. More...
 
TiglReturnCode tiglExportWingColladaByUID (const TiglCPACSConfigurationHandle cpacsHandle, const char *wingUID, const char *filename, double deflection)
 Exports the boolean fused geometry of a wing (selected by uid) meshed to Collada (*.dae) format. More...
 
TiglReturnCode tiglSetExportOptions (const char *exporter_name, const char *option_name, const char *option_value)
 Sets options for the geometry export. More...
 

Detailed Description

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.

Function Documentation

TiglReturnCode tiglExportComponent ( TiglCPACSConfigurationHandle  cpacsHandle,
const char *  uid,
const char *  fileName,
double  deflection 
)

Exports a geometric component (e.g. a wing, a fuselage etc.)

The component to be exported is definied via its uid. The export format is specified with the file extension of fileName.

The export can be configured in more detail using tiglSetExportOptions.

Supported file formats are: STEP (*.stp), IGES (*.igs), VTK (*.vtp), Collada (*.dae), STL (*.stl) and BREP (*.brep)

Example: Export a wing to IGES format

tiglExportComponent(handle, "MyWingUID", "wing.igs", 0.);
Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]uidUid of the component to be exported
[in]fileNameFile name of the exported file
[in]deflectionDeflection parameter. This is only used for meshed exports (e.g. VTK, STL, Collada).
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no exporter is found for the specified file name
  • TIGL_NULL_POINTER if uid or fileName is a null pointer
  • TIGL_WRITE_FAILED if the file could not be written
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportConfiguration ( TiglCPACSConfigurationHandle  cpacsHandle,
const char *  fileName,
TiglBoolean  fuseAllShapes,
double  deflection 
)

Exports the whole configuration into a file.

It can be specified, whether the configuration should be exported as a fused geometry (i.e. all shapes are trimmed with each other). The export format is specified with the file extension of fileName.

The export can be configured in more detail using tiglSetExportOptions.

Supported file formats are: STEP (*.stp), IGES (*.igs), VTK (*.vtp), Collada (*.dae), STL (*.stl) and BREP (*.brep)

Example: Export the fused configuration to STEP format

tiglExportConfiguration(handle, "aircraft.stp", TIGL_TRUE, 0.);
Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]fileNameFile name of the exported file
[in]fuseAllShapesWhether to fuse the geometry of not. Fusing can take a lot of time!
[in]deflectionDeflection parameter. This is only used for meshed exports (e.g. VTK, STL, Collada).
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no exporter is found for the specified file name
  • TIGL_NULL_POINTER if fileName is a null pointer
  • TIGL_WRITE_FAILED if the file could not be written
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportFusedBREP ( TiglCPACSConfigurationHandle  cpacsHandle,
const char *  filename 
)

Exports the fused/trimmed geometry of a CPACS configuration to BREP format.

In order to fuse the geometry, boolean operations are performed. Depending on the complexity of the configuration, the fusing can take several minutes.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]filenameBREP export file name
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportFusedSTEP ( TiglCPACSConfigurationHandle  cpacsHandle,
const char *  filenamePtr 
)

Exports the fused/trimmed geometry of a CPACS configuration to STEP format.

In order to fuse the geometry, boolean operations are performed. Depending on the complexity of the configuration, the fusing can take several minutes.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]filenamePtrPointer to an STEP export file name
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportFusedWingFuselageIGES ( TiglCPACSConfigurationHandle  cpacsHandle,
const char *  filenamePtr 
)

Exports the boolean fused geometry of a CPACS configuration to IGES format.

To maintain compatibility with CATIA, the file suffix should be ".igs".

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]filenamePtrPointer to an IGES export file name
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportFuselageBREPByUID ( TiglCPACSConfigurationHandle  cpacsHandle,
const char *  fuselageUID,
const char *  filename 
)

Exports the boolean fused geometry of a fuselage (selected by uid) to BREP format.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]fuselageUIDUID of the Fuselage to export
[in]filenameBREP export file name
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportFuselageColladaByUID ( const TiglCPACSConfigurationHandle  cpacsHandle,
const char *  fuselageUID,
const char *  filename,
double  deflection 
)

Exports the boolean fused geometry of a fuselage (selected by uid) meshed to Collada (*.dae) format.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]fuselageUIDUID of the Fuselage to export
[in]filenameFilename of the resulting collada file. It should contain the .dae file name ending.
[in]deflectionMaximum deflection of the triangulation from the real surface
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filename is a null pointer
  • TIGL_INDEX_ERROR if fuselageUID does not exists
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportIGES ( TiglCPACSConfigurationHandle  cpacsHandle,
const char *  filenamePtr 
)

Exports the geometry of a CPACS configuration to IGES format.

To maintain compatibility with CATIA, the file suffix should be ".igs".

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]filenamePtrPointer to an IGES export file name
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportMeshedFuselageSTL ( TiglCPACSConfigurationHandle  cpacsHandle,
int  fuselageIndex,
const char *  filenamePtr,
double  deflection 
)

Exports the boolean fused geometry of a fuselage meshed to STL format.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]fuselageIndexIndex of the Fuselage to export
[in]filenamePtrPointer to an STL export file name
[in]deflectionMaximum deflection of the triangulation from the real surface
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_INDEX_ERROR if fuselageIndex is less or equal zero
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportMeshedFuselageSTLByUID ( TiglCPACSConfigurationHandle  cpacsHandle,
const char *  fuselageUID,
const char *  filenamePtr,
double  deflection 
)

Exports the boolean fused geometry of a fuselage meshed to STL format.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]fuselageUIDUID of the Fuselage to export
[in]filenamePtrPointer to an STL export file name
[in]deflectionMaximum deflection of the triangulation from the real surface
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_INDEX_ERROR if fuselageIndex is less or equal zero
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportMeshedFuselageVTKByIndex ( const TiglCPACSConfigurationHandle  cpacsHandle,
const int  fuselageIndex,
const char *  filenamePtr,
double  deflection 
)

Exports the boolean fused geometry of a fuselage (selected by index) meshed to VTK format.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]fuselageIndexIndex of the Fuselage to export
[in]filenamePtrPointer to an VTK export file name (*.vtp = polygonal XML_VTK)
[in]deflectionMaximum deflection of the triangulation from the real surface
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_INDEX_ERROR if fuselageIndex is less or equal zero
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportMeshedFuselageVTKByUID ( const TiglCPACSConfigurationHandle  cpacsHandle,
const char *  fuselageUID,
const char *  filenamePtr,
double  deflection 
)

Exports the boolean fused geometry of a fuselage (selected by uid) meshed to VTK format.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]fuselageUIDUID of the Fuselage to export
[in]filenamePtrPointer to an VTK export file name (*.vtp = polygonal XML_VTK)
[in]deflectionMaximum deflection of the triangulation from the real surface
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_INDEX_ERROR if fuselageUID does not exists
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportMeshedGeometrySTL ( TiglCPACSConfigurationHandle  cpacsHandle,
const char *  filenamePtr,
double  deflection 
)

Exports the boolean fused geometry of the whole configuration meshed to STL format.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]filenamePtrPointer to an STL export file name
[in]deflectionMaximum deflection of the triangulation from the real surface
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportMeshedGeometryVTK ( const TiglCPACSConfigurationHandle  cpacsHandle,
const char *  filenamePtr,
double  deflection 
)

Exports the boolean fused geometry of the whole configuration meshed to VTK format.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]filenamePtrPointer to an VTK export file name (*.vtp = polygonal XML_VTK)
[in]deflectionMaximum deflection of the triangulation from the real surface
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportMeshedGeometryVTKSimple ( const TiglCPACSConfigurationHandle  cpacsHandle,
const char *  filenamePtr,
double  deflection 
)

Exports the boolean fused geometry of the whole configuration meshed to VTK format.

This function does only a very simple, but also very fast meshing on the geometry and exports them to a VTK file. No additional CPACS relevant information are computed.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]filenamePtrPointer to an VTK export file name (*.vtp = polygonal XML_VTK)
[in]deflectionMaximum deflection of the triangulation from the real surface
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportMeshedWingSTL ( TiglCPACSConfigurationHandle  cpacsHandle,
int  wingIndex,
const char *  filenamePtr,
double  deflection 
)

Exports the boolean fused geometry of a wing meshed to STL format.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]wingIndexIndex of the Wing to export
[in]filenamePtrPointer to an STL export file name
[in]deflectionMaximum deflection of the triangulation from the real surface
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_INDEX_ERROR if wingIndex is less or equal zero
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportMeshedWingSTLByUID ( TiglCPACSConfigurationHandle  cpacsHandle,
const char *  wingUID,
const char *  filenamePtr,
double  deflection 
)

Exports the boolean fused geometry of a wing meshed to STL format.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]wingUIDUID of the Wing to export
[in]filenamePtrPointer to an STL export file name
[in]deflectionMaximum deflection of the triangulation from the real surface
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_INDEX_ERROR if wingIndex is less or equal zero
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportMeshedWingVTKByIndex ( const TiglCPACSConfigurationHandle  cpacsHandle,
const int  wingIndex,
const char *  filenamePtr,
const double  deflection 
)

Exports the boolean fused geometry of a wing (selected by id) meshed to VTK format.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]wingIndexIndex of the Wing to export
[in]filenamePtrPointer to an VTK export file name (*.vtp = polygonal XML_VTK)
[in]deflectionMaximum deflection of the triangulation from the real surface
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_INDEX_ERROR if wingIndex is less or equal zero
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportMeshedWingVTKByUID ( const TiglCPACSConfigurationHandle  cpacsHandle,
const char *  wingUID,
const char *  filenamePtr,
double  deflection 
)

Exports the boolean fused geometry of a wing (selected by UID) meshed to VTK format.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]wingUIDUID of the Wing to export
[in]filenamePtrPointer to an VTK export file name (*.vtp = polygonal XML_VTK)
[in]deflectionMaximum deflection of the triangulation from the real surface
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_INDEX_ERROR if the wing UID does not exists
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportMeshedWingVTKSimpleByUID ( const TiglCPACSConfigurationHandle  cpacsHandle,
const char *  wingUID,
const char *  filenamePtr,
double  deflection 
)

Exports the boolean fused geometry of a wing (selected by UID) meshed to VTK format.

This function does only a very simple, but also very fast meshing on the wing segments and exports them to a VTK file. No additional CPACS relevant information are computed.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]wingUIDUID of the Wing to export
[in]filenamePtrPointer to an VTK export file name (*.vtp = polygonal XML_VTK)
[in]deflectionMaximum deflection of the triangulation from the real surface
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_INDEX_ERROR if the wing UID does not exists
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportSTEP ( TiglCPACSConfigurationHandle  cpacsHandle,
const char *  filenamePtr 
)

Exports the geometry of a CPACS configuration to STEP format.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]filenamePtrPointer to an STEP export file name
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportWingBREPByUID ( TiglCPACSConfigurationHandle  cpacsHandle,
const char *  wingUID,
const char *  filename 
)

Exports the boolean fused geometry of a wing (selected by uid) to BREP format.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]wingUIDUID of the Fuselage to export
[in]filenameBREP export file name
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filenamePtr is a null pointer
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglExportWingColladaByUID ( const TiglCPACSConfigurationHandle  cpacsHandle,
const char *  wingUID,
const char *  filename,
double  deflection 
)

Exports the boolean fused geometry of a wing (selected by uid) meshed to Collada (*.dae) format.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]wingUIDUID of the Wing to export
[in]filenameFilename of the resulting collada file. It should contain the .dae file name ending.
[in]deflectionMaximum deflection of the triangulation from the real surface
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if filename is a null pointer
  • TIGL_INDEX_ERROR if fuselageUID does not exists
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglSetExportOptions ( const char *  exporter_name,
const char *  option_name,
const char *  option_value 
)

Sets options for the geometry export.

Generic options for all exporters:

  • ApplySymmetries (Values: "true", "false"): Whether symmetric cpacs objects (e.g. wings) should be written.
  • IncludeFarfield (Values: "true", "false"): Whether to include the far field into the export or not.
  • ShapeGroupMode (Values: "WHOLE_SHAPE", "NAMED_COMPOUNDS", "FACES"): Adjust, how shapes are grouped.

Exporter-specific options:

  • VTK:
    • WriteNormals (Values: "true", "false"): Whether to write normal vectors or not. To avoid duplicate vertices, normals should be disabled.
    • MultiplePieces (Values: "true", "false"): Whether to export the shapes into multiple vtk pieces.
    • WriteMetaData (Values: "true", "false"): Whether to add meta data (e.g. wing segments etc...)
  • IGES:
    • IGES5.3 (Values: "true", "false"): Whether to use IGES 5.3 format, that supports shells and solids. Note: Some software do not yet implement this standard. E.g. Catia might only load this, when set to false!
    • FaceNames (Values: "UIDOnly", "FaceNameOnly", "UIDandFaceName", "None"): Defines, how to write the names of the faces to the IGES files. The most versatile is probably "UIDandFaceName". (Default: "FaceNameOnly")

Example: The IGES export normally does only write half-models. It does not apply symmetries. to change this, just call

tiglSetExportOptions("iges", "ApplySymmetries", "true");
Parameters
[in]exporter_nameFile format of the export. E.g. "vtk", "iges", "step", "collada", "brep" or "stl"
[in]option_nameName of the option to be set
[in]option_valueValue of the options to be set
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if the specified exporter or the option does not exist
  • TIGL_NULL_POINTER if exporter_name, option_name or option_value is a null pointer
  • TIGL_ERROR if some other error occurred