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... | |
Functions for export of wings/fuselages.
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.
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.);
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | uid | Uid of the component to be exported |
[in] | fileName | File name of the exported file |
[in] | deflection | Deflection parameter. This is only used for meshed exports (e.g. VTK, STL, Collada). |
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.);
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fileName | File name of the exported file |
[in] | fuseAllShapes | Whether to fuse the geometry of not. Fusing can take a lot of time! |
[in] | deflection | Deflection parameter. This is only used for meshed exports (e.g. VTK, STL, Collada). |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | filename | BREP export file name |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | filenamePtr | Pointer to an STEP export file name |
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".
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | filenamePtr | Pointer to an IGES export file name |
TiglReturnCode tiglExportFuselageBREPByUID | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | fuselageUID, | ||
const char * | filename | ||
) |
Exports the boolean fused geometry of a fuselage (selected by uid) to BREP format.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageUID | UID of the Fuselage to export |
[in] | filename | BREP export file name |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageUID | UID of the Fuselage to export |
[in] | filename | Filename of the resulting collada file. It should contain the .dae file name ending. |
[in] | deflection | Maximum deflection of the triangulation from the real surface |
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".
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | filenamePtr | Pointer to an IGES export file name |
TiglReturnCode tiglExportMeshedFuselageSTL | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | fuselageIndex, | ||
const char * | filenamePtr, | ||
double | deflection | ||
) |
Exports the boolean fused geometry of a fuselage meshed to STL format.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | Index of the Fuselage to export |
[in] | filenamePtr | Pointer to an STL export file name |
[in] | deflection | Maximum deflection of the triangulation from the real surface |
TiglReturnCode tiglExportMeshedFuselageSTLByUID | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | fuselageUID, | ||
const char * | filenamePtr, | ||
double | deflection | ||
) |
Exports the boolean fused geometry of a fuselage meshed to STL format.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageUID | UID of the Fuselage to export |
[in] | filenamePtr | Pointer to an STL export file name |
[in] | deflection | Maximum deflection of the triangulation from the real surface |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | Index of the Fuselage to export |
[in] | filenamePtr | Pointer to an VTK export file name (*.vtp = polygonal XML_VTK) |
[in] | deflection | Maximum deflection of the triangulation from the real surface |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageUID | UID of the Fuselage to export |
[in] | filenamePtr | Pointer to an VTK export file name (*.vtp = polygonal XML_VTK) |
[in] | deflection | Maximum deflection of the triangulation from the real surface |
TiglReturnCode tiglExportMeshedGeometrySTL | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | filenamePtr, | ||
double | deflection | ||
) |
Exports the boolean fused geometry of the whole configuration meshed to STL format.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | filenamePtr | Pointer to an STL export file name |
[in] | deflection | Maximum deflection of the triangulation from the real surface |
TiglReturnCode tiglExportMeshedGeometryVTK | ( | const TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | filenamePtr, | ||
double | deflection | ||
) |
Exports the boolean fused geometry of the whole configuration meshed to VTK format.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | filenamePtr | Pointer to an VTK export file name (*.vtp = polygonal XML_VTK) |
[in] | deflection | Maximum deflection of the triangulation from the real surface |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | filenamePtr | Pointer to an VTK export file name (*.vtp = polygonal XML_VTK) |
[in] | deflection | Maximum deflection of the triangulation from the real surface |
TiglReturnCode tiglExportMeshedWingSTL | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | wingIndex, | ||
const char * | filenamePtr, | ||
double | deflection | ||
) |
Exports the boolean fused geometry of a wing meshed to STL format.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | wingIndex | Index of the Wing to export |
[in] | filenamePtr | Pointer to an STL export file name |
[in] | deflection | Maximum deflection of the triangulation from the real surface |
TiglReturnCode tiglExportMeshedWingSTLByUID | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | wingUID, | ||
const char * | filenamePtr, | ||
double | deflection | ||
) |
Exports the boolean fused geometry of a wing meshed to STL format.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | wingUID | UID of the Wing to export |
[in] | filenamePtr | Pointer to an STL export file name |
[in] | deflection | Maximum deflection of the triangulation from the real surface |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | wingIndex | Index of the Wing to export |
[in] | filenamePtr | Pointer to an VTK export file name (*.vtp = polygonal XML_VTK) |
[in] | deflection | Maximum deflection of the triangulation from the real surface |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | wingUID | UID of the Wing to export |
[in] | filenamePtr | Pointer to an VTK export file name (*.vtp = polygonal XML_VTK) |
[in] | deflection | Maximum deflection of the triangulation from the real surface |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | wingUID | UID of the Wing to export |
[in] | filenamePtr | Pointer to an VTK export file name (*.vtp = polygonal XML_VTK) |
[in] | deflection | Maximum deflection of the triangulation from the real surface |
TiglReturnCode tiglExportSTEP | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | filenamePtr | ||
) |
Exports the geometry of a CPACS configuration to STEP format.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | filenamePtr | Pointer to an STEP export file name |
TiglReturnCode tiglExportWingBREPByUID | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | wingUID, | ||
const char * | filename | ||
) |
Exports the boolean fused geometry of a wing (selected by uid) to BREP format.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | wingUID | UID of the Fuselage to export |
[in] | filename | BREP export file name |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | wingUID | UID of the Wing to export |
[in] | filename | Filename of the resulting collada file. It should contain the .dae file name ending. |
[in] | deflection | Maximum deflection of the triangulation from the real surface |
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:
Exporter-specific options:
Example: The IGES export normally does only write half-models. It does not apply symmetries. to change this, just call
tiglSetExportOptions("iges", "ApplySymmetries", "true");
[in] | exporter_name | File format of the export. E.g. "vtk", "iges", "step", "collada", "brep" or "stl" |
[in] | option_name | Name of the option to be set |
[in] | option_value | Value of the options to be set |