TiGL
2.2.3
|
Functions | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglExportFusedBREP (TiglCPACSConfigurationHandle cpacsHandle, const char *filename) |
Exports the fused/trimmed geometry of a CPACS configuration to BREP format. More... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglExportFusedSTEP (TiglCPACSConfigurationHandle cpacsHandle, const char *filenamePtr) |
Exports the fused/trimmed geometry of a CPACS configuration to STEP format. More... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglExportFusedWingFuselageIGES (TiglCPACSConfigurationHandle cpacsHandle, const char *filenamePtr) |
Exports the boolean fused geometry of a CPACS configuration to IGES format. More... | |
TIGL_COMMON_EXPORT 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... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglExportIGES (TiglCPACSConfigurationHandle cpacsHandle, const char *filenamePtr) |
Exports the geometry of a CPACS configuration to IGES format. More... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglExportMeshedFuselageSTL (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, const char *filenamePtr, double deflection) |
Exports the boolean fused geometry of a fuselage meshed to STL format. More... | |
TIGL_COMMON_EXPORT 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... | |
TIGL_COMMON_EXPORT 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... | |
TIGL_COMMON_EXPORT 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... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglExportMeshedFuselageVTKSimpleByUID (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... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglExportMeshedGeometrySTL (TiglCPACSConfigurationHandle cpacsHandle, const char *filenamePtr, double deflection) |
Exports the boolean fused geometry of the whole configuration meshed to STL format. More... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglExportMeshedGeometryVTK (const TiglCPACSConfigurationHandle cpacsHandle, const char *filenamePtr, double deflection) |
Exports the boolean fused geometry of the whole configuration meshed to VTK format. More... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglExportMeshedGeometryVTKSimple (const TiglCPACSConfigurationHandle cpacsHandle, const char *filenamePtr, double deflection) |
Exports the boolean fused geometry of the whole configuration meshed to VTK format. More... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglExportMeshedWingSTL (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, const char *filenamePtr, double deflection) |
Exports the boolean fused geometry of a wing meshed to STL format. More... | |
TIGL_COMMON_EXPORT 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... | |
TIGL_COMMON_EXPORT 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... | |
TIGL_COMMON_EXPORT 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... | |
TIGL_COMMON_EXPORT 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... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglExportSTEP (TiglCPACSConfigurationHandle cpacsHandle, const char *filenamePtr) |
Exports the geometry of a CPACS configuration to STEP format. More... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglExportVTKSetOptions (const char *key, const char *value) |
Sets options for the VTK Export. More... | |
TIGL_COMMON_EXPORT 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... | |
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.
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT TiglReturnCode tiglExportMeshedFuselageVTKSimpleByUID | ( | 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.
This function does only a very simple, but also very fast meshing on the fuselage and exports them to a VTK file. No additional CPACS relevant information are computed.
[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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT 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 |
TIGL_COMMON_EXPORT TiglReturnCode tiglExportVTKSetOptions | ( | const char * | key, |
const char * | value | ||
) |
Sets options for the VTK Export.
Available Settings:
key: "normals_enabled" valid values: "0 or 1" default: "1".
Enables or disables the output of normal vectors. A Normal vector and a vertex belong to the same logical structure. If there are two identical vertices but with different normal vectors, the VTK export stores them as two entries. Thus, a VTK file may have "duplicate" vertices. To disable this behavior, set "normal_enabled" to "0".
TIGL_COMMON_EXPORT 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 |