|
| 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 | 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...
|
| |
| 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 | tiglExportVTKSetOptions (const char *key, const char *value) |
| | Sets options for the VTK Export. 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...
|
| |
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:
- uID: The UID of the fuselage or wing component segment on which the triangle exists.
- segmentIndex: The segmentIndex of the fuselage or wing component segment on which the triangle exists. Kind of redundant to the UID.
- eta/xsi: The parameters in the surface parametrical space of the triangle.
- isOnTop: Flag that indicates whether the triangle is on the top of the wing or not. Please see the cpacs documentation how "up" is defined for wings.
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.
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] | cpacsHandle | Handle for the CPACS configuration |
| [in] | filename | BREP 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
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] | cpacsHandle | Handle for the CPACS configuration |
| [in] | filenamePtr | Pointer 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
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] | cpacsHandle | Handle for the CPACS configuration |
| [in] | filenamePtr | Pointer 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
Exports the boolean fused geometry of a fuselage (selected by uid) to BREP format.
- Parameters
-
| [in] | cpacsHandle | Handle for the CPACS configuration |
| [in] | fuselageUID | UID of the Fuselage to export |
| [in] | filename | BREP 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
Exports the boolean fused geometry of a fuselage (selected by uid) meshed to Collada (*.dae) format.
- Parameters
-
| [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 |
- 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
Exports the geometry of a CPACS configuration to IGES format.
To maintain compatibility with CATIA, the file suffix should be ".igs".
- Parameters
-
| [in] | cpacsHandle | Handle for the CPACS configuration |
| [in] | filenamePtr | Pointer 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
Exports the boolean fused geometry of a fuselage meshed to STL format.
- Parameters
-
| [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 |
- 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
Exports the boolean fused geometry of a fuselage meshed to STL format.
- Parameters
-
| [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 |
- 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
Exports the boolean fused geometry of a fuselage (selected by index) meshed to VTK format.
- Parameters
-
| [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 |
- 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
Exports the boolean fused geometry of a fuselage (selected by uid) meshed to VTK format.
- Parameters
-
| [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 |
- 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
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.
- Parameters
-
| [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 |
- 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
Exports the boolean fused geometry of the whole configuration meshed to STL format.
- Parameters
-
| [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 |
- 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
Exports the boolean fused geometry of the whole configuration meshed to VTK format.
- Parameters
-
| [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 |
- 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
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] | 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 |
- 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
Exports the boolean fused geometry of a wing meshed to STL format.
- Parameters
-
| [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 |
- 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
Exports the boolean fused geometry of a wing meshed to STL format.
- Parameters
-
| [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 |
- 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
Exports the boolean fused geometry of a wing (selected by id) meshed to VTK format.
- Parameters
-
| [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 |
- 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
Exports the boolean fused geometry of a wing (selected by UID) meshed to VTK format.
- Parameters
-
| [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 |
- 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
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] | 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 |
- 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
Exports the geometry of a CPACS configuration to STEP format.
- Parameters
-
| [in] | cpacsHandle | Handle for the CPACS configuration |
| [in] | filenamePtr | Pointer 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 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".
- Returns
- TIGL_SUCCESS if no error occurred
- TIGL_NULL_POINTER if key or value are a null pointer
- TIGL_ERROR if the specified key/value pair is invalid
Exports the boolean fused geometry of a wing (selected by uid) to BREP format.
- Parameters
-
| [in] | cpacsHandle | Handle for the CPACS configuration |
| [in] | wingUID | UID of the Fuselage to export |
| [in] | filename | BREP 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
Exports the boolean fused geometry of a wing (selected by uid) meshed to Collada (*.dae) format.
- Parameters
-
| [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 |
- 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