TiGL  2.2.3
tigl.h File Reference

Declaration of the TIGL C interface. More...

#include "tixi.h"
#include <stdio.h>

Macros

#define TIGL_COMMON_EXPORT
 
#define TIGL_COMPONENT_CONTROLSURF   8192
 
#define TIGL_COMPONENT_FUSELAGE   8
 
#define TIGL_COMPONENT_FUSELSEGMENT   128
 
#define TIGL_COMPONENT_GENERICSYSTEM   1024
 
#define TIGL_COMPONENT_LOGICAL   2
 
#define TIGL_COMPONENT_PHYSICAL   1
 
#define TIGL_COMPONENT_PLANE   4
 
#define TIGL_COMPONENT_ROTOR   2048
 
#define TIGL_COMPONENT_ROTORBLADE   4096
 
#define TIGL_COMPONENT_SEGMENT   32
 
#define TIGL_COMPONENT_WING   16
 
#define TIGL_COMPONENT_WINGCOMPSEGMENT   256
 
#define TIGL_COMPONENT_WINGSEGMENT   64
 
#define TIGL_COMPONENT_WINGSHELL   512
 
#define TIGL_H
 

Typedefs

typedef enum TiglAlgorithmCode TiglAlgorithmCode
 Typedef for possible algorithm types used in calculations. More...
 
typedef enum TiglBoolean TiglBoolean
 Definition of boolean type used in TIGL. More...
 
typedef enum TiglContinuity TiglContinuity
 
typedef enum TiglControlSurfaceType TiglControlSurfaceType
 
typedef enum TiglCoordinateSystem TiglCoordinateSystem
 
typedef int TiglCPACSConfigurationHandle
 Datatype for a CPACS configuration handle. More...
 
typedef unsigned int TiglGeometricComponentType
 
typedef enum TiglImportExportFormat TiglImportExportFormat
 Definition of the different file formats used for import/export used in TIGL. More...
 
typedef enum TiglLoftSide TiglLoftSide
 
typedef enum TiglLogLevel TiglLogLevel
 Definition of logging levels. More...
 
typedef enum TiglReturnCode TiglReturnCode
 Definition of error return type. More...
 
typedef const char ** TiglStringList
 
typedef enum TiglStructureType TiglStructureType
 
typedef enum TiglSymmetryAxis TiglSymmetryAxis
 Definition of Symmetry Axis used in TIGL. More...
 

Enumerations

enum  TiglAlgorithmCode { TIGL_INTERPOLATE_LINEAR_WIRE = 0, TIGL_INTERPOLATE_BSPLINE_WIRE = 1, TIGL_APPROXIMATE_BSPLINE_WIRE = 2 }
 
enum  TiglBoolean { TIGL_FALSE = 0, TIGL_TRUE = 1 }
 
enum  TiglContinuity { C0 = 0, C1 = 1, C2 = 2 }
 
enum  TiglControlSurfaceType { TRAILING_EDGE_DEVICE = 0, LEADING_EDGE_DEVICE = 1, SPOILER = 2 }
 
enum  TiglCoordinateSystem { GLOBAL_COORDINATE_SYSTEM = 0, WING_COORDINATE_SYSTEM = 1, FUSELAGE_COORDINATE_SYSTEM = 2 }
 
enum  TiglImportExportFormat { TIGL_IMPORTEXPORT_IGES = 0, TIGL_IMPORTEXPORT_STEP = 1, TIGL_IMPORTEXPORT_STL = 2, TIGL_IMPORTEXPORT_VTK = 3 }
 
enum  TiglLoftSide { UPPER_SIDE = 0, LOWER_SIDE = 1 }
 
enum  TiglLogLevel {
  TILOG_SILENT =0, TILOG_ERROR =1, TILOG_WARNING =2, TILOG_INFO =3,
  TILOG_DEBUG =4, TILOG_DEBUG1 =5, TILOG_DEBUG2 =6, TILOG_DEBUG3 =7,
  TILOG_DEBUG4 =8
}
 
enum  TiglReturnCode {
  TIGL_SUCCESS = 0, TIGL_ERROR = 1, TIGL_NULL_POINTER = 2, TIGL_NOT_FOUND = 3,
  TIGL_XML_ERROR = 4, TIGL_OPEN_FAILED = 5, TIGL_CLOSE_FAILED = 6, TIGL_INDEX_ERROR = 7,
  TIGL_STRING_TRUNCATED = 8, TIGL_WRONG_TIXI_VERSION = 9, TIGL_UID_ERROR = 10, TIGL_WRONG_CPACS_VERSION = 11,
  TIGL_UNINITIALIZED = 12, TIGL_MATH_ERROR = 13, TIGL_WRITE_FAILED = 14
}
 
enum  TiglStructureType { UPPER_SHELL = 0, LOWER_SHELL = 1, INNER_STRUCTURE = 2 }
 
enum  TiglSymmetryAxis { TIGL_NO_SYMMETRY = 0, TIGL_X_Y_PLANE = 1, TIGL_X_Z_PLANE = 2, TIGL_Y_Z_PLANE = 3 }
 

Functions

TIGL_COMMON_EXPORT TiglReturnCode tiglCheckPointInside (TiglCPACSConfigurationHandle cpacsHandle, double px, double py, double pz, const char *componentUID, TiglBoolean *isInside)
 Checks whether a point lies inside the given geometric object. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglCloseCPACSConfiguration (TiglCPACSConfigurationHandle cpacsHandle)
 Closes a CPACS configuration and cleans up all memory used by the configuration. After closing a configuration the associated configuration handle is no longer valid. When the CPACS configuration has been closed, the companion tixi document can also be closed. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglComponentGetHashCode (TiglCPACSConfigurationHandle cpacsHandle, const char *componentUID, int *hashCodePtr)
 Returns a unique HashCode for a geometric component. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglComponentIntersectionLineCount (TiglCPACSConfigurationHandle cpacsHandle, const char *componentUidOne, const char *componentUidTwo, int *numWires)
 The function returns the number of intersection lines of two geometric components. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglComponentIntersectionPoint (TiglCPACSConfigurationHandle cpacsHandle, const char *componentUidOne, const char *componentUidTwo, int lineID, double eta, double *pointXPtr, double *pointYPtr, double *pointZPtr)
 The function returns a point on the intersection line of two geometric components. Often there are more that one intersection line, therefore you need to specify the line. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglComponentIntersectionPoints (TiglCPACSConfigurationHandle cpacsHandle, const char *componentUidOne, const char *componentUidTwo, int lineID, const double *etaArray, int numberOfPoints, double *pointXArray, double *pointYArray, double *pointZArray)
 Convienience function to returns a list of points on the intersection line of two geometric components. Often there are more that one intersection line, therefore you need to specify the line. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglConfigurationGetLength (TiglCPACSConfigurationHandle cpacsHandle, double *pLength)
 Returns the length of the plane. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglControlSurfaceGetDeflection (TiglCPACSConfigurationHandle cpacsHandle, const char *controlSurfaceUID, double *deflection)
 Returns the current value for the deflection of a control device. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglControlSurfaceGetMaximumDeflection (TiglCPACSConfigurationHandle cpacsHandle, const char *controlSurfaceUID, double *maxDeflection)
 Returns the maximum value for the deflection of a control device. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglControlSurfaceGetMinimumDeflection (TiglCPACSConfigurationHandle cpacsHandle, const char *controlSurfaceUID, double *minDeflection)
 Returns the minimum value for the deflection of a control device. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglControlSurfaceSetDeflection (TiglCPACSConfigurationHandle cpacsHandle, const char *controlSurfaceUID, double deflection)
 Sets the current value for the deflection of a control device. More...
 
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...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetCircumference (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, double eta, double *circumferencePtr)
 Returns the circumference of a fuselage surface for a given fuselage and segment index and an eta. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetEndConnectedSegmentCount (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, int *segmentCountPtr)
 Returns the count of segments connected to the end section of a given fuselage segment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetEndConnectedSegmentIndex (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, int n, int *connectedIndexPtr)
 Returns the index (number) of the n-th segment connected to the end section of a given fuselage segment. n starts at 1. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetEndSectionAndElementIndex (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, int *sectionIndexPtr, int *elementIndexPtr)
 Returns the section index and section element index of the end side of a given fuselage segment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetEndSectionAndElementUID (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, char **sectionUIDPtr, char **elementUIDPtr)
 Returns the section UID and section element UID of the end side of a given fuselage segment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetIndex (TiglCPACSConfigurationHandle cpacsHandle, const char *fuselageUID, int *fuselageIndexPtr)
 Returns the index of a fuselage. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetMinumumDistanceToGround (TiglCPACSConfigurationHandle cpacsHandle, char *fuselageUID, double axisPntX, double axisPntY, double axisPntZ, double axisDirX, double axisDirY, double axisDirZ, double angle, double *pointXPtr, double *pointYPtr, double *pointZPtr)
 Returns the point where the distance between the selected fuselage and the ground is at minimum. The Fuselage could be turned with a given angle at at given axis, specified by a point and a direction. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetNumPointsOnXPlane (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, double eta, double xpos, int *numPointsPtr)
 Returns the number of points on a fuselage surface for a given fuselage and a give x-position. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetNumPointsOnYPlane (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, double eta, double ypos, int *numPointsPtr)
 Returns the number of points on a fuselage surface for a given fuselage and a give y-position. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetPoint (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, double eta, double zeta, double *pointXPtr, double *pointYPtr, double *pointZPtr)
 Returns a point on a fuselage surface for a given fuselage and segment index. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetPointAngle (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, double eta, double alpha, double *pointXPtr, double *pointYPtr, double *pointZPtr)
 Returns a point on a fuselage surface for a given fuselage and segment index and an angle alpha (degree). More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetPointAngleTranslated (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, double eta, double alpha, double y_cs, double z_cs, double *pointXPtr, double *pointYPtr, double *pointZPtr)
 Returns a point on a fuselage surface for a given fuselage and segment index and an angle alpha (degree). 0 degree of the angle alpha is meant to be "up" in the direction of the positive z-axis like specifies in cpacs. The origin of the line that will be rotated with the angle alpha could be translated via the parameters y_cs and z_cs. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetPointOnXPlane (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, double eta, double xpos, int pointIndex, double *pointXPtr, double *pointYPtr, double *pointZPtr)
 Returns a point on a fuselage surface for a given fuselage and segment index. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetPointOnYPlane (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, double eta, double ypos, int pointIndex, double *pointXPtr, double *pointYPtr, double *pointZPtr)
 Returns a point on a fuselage surface for a given fuselage and segment index. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetProfileName (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int sectionIndex, int elementIndex, char **profileNamePtr)
 Returns the name of a fuselage profile. The string returned must not be deleted by the caller via free(). It will be deleted when the CPACS configuration is closed. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetSectionCount (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int *sectionCount)
 Returns the number of sections of a fuselage. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetSectionUID (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int sectionIndex, char **uidNamePtr)
 Returns the UID of a section of a fuselage. The string returned must not be deleted by the caller via free(). It will be deleted when the CPACS configuration is closed. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetSegmentCount (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int *segmentCountPtr)
 Returns the number of segments for a fuselage in a CPACS configuration. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetSegmentIndex (TiglCPACSConfigurationHandle cpacsHandle, const char *segmentUID, int *segmentIndexPtr, int *fuselageIndexPtr)
 Returns the Index of a segment of a fuselage. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetSegmentSurfaceArea (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, double *surfaceAreaPtr)
 Returns the surface area of a segment of a fuselage. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetSegmentUID (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, char **uidNamePtr)
 Returns the UID of a segment of a fuselage. The string returned must not be deleted by the caller via free(). It will be deleted when the CPACS configuration is closed. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetSegmentVolume (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, double *volumePtr)
 Returns the volume of a segment of a fuselage. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetStartConnectedSegmentCount (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, int *segmentCountPtr)
 Returns the count of segments connected to the start section of a given fuselage segment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetStartConnectedSegmentIndex (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, int n, int *connectedIndexPtr)
 Returns the index (number) of the n-th segment connected to the start section of a given fuselage segment. n starts at 1. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetStartSectionAndElementIndex (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, int *sectionIndexPtr, int *elementIndexPtr)
 Returns the section index and section element index of the start side of a given fuselage segment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetStartSectionAndElementUID (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, char **sectionUIDPtr, char **elementUIDPtr)
 Returns the section UID and section element UID of the start side of a given fuselage segment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetSurfaceArea (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, double *surfaceAreaPtr)
 Returns the surface area of the fuselage. Currently, the area includes also the faces on the fuselage symmetry plane (in case of a symmetric wing). This is in particular a problem for fuselages, where only one half side is defined in CPACS. In future releases, these faces will not belong anymore to the surface area calculation. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetSymmetry (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, TiglSymmetryAxis *symmetryAxisPtr)
 Returns the Symmetry Enum if the fuselage has symmetry-axis. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetUID (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, char **uidNamePtr)
 Returns the UID of a fuselage. The string returned must not be deleted by the caller via free(). It will be deleted when the CPACS configuration is closed. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglFuselageGetVolume (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, double *volumePtr)
 Returns the volume of the fuselage. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglGetControlSurfaceCount (TiglCPACSConfigurationHandle cpacsHandle, const char *componentSegmentUID, int *numControlSurfaces)
 Returns the number of control surfaces belonging to a component segment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglGetControlSurfaceType (TiglCPACSConfigurationHandle cpacsHandle, const char *controlSurfaceUID, TiglControlSurfaceType *controlSurfaceType)
 Returns the type of a control surface given its UID. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglGetControlSurfaceUID (TiglCPACSConfigurationHandle cpacsHandle, const char *componentSegmentUID, int controlSurfaceIndex, char **controlSurfaceUID)
 Returns the UID of a control surface given its index in a component segment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglGetCPACSTixiHandle (TiglCPACSConfigurationHandle cpacsHandle, TixiDocumentHandle *tixiHandlePtr)
 Returns the underlying TixiDocumentHandle for a given CPACS configuration handle. More...
 
TIGL_COMMON_EXPORT const char * tiglGetErrorString (TiglReturnCode errorCode)
 Translates an error code into a string. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglGetFuselageCount (TiglCPACSConfigurationHandle cpacsHandle, int *fuselageCountPtr)
 Returns the number of fuselages in a CPACS configuration. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglGetGuideCurvePoints (TiglCPACSConfigurationHandle cpacsHandle, const char *curveUID, int numPoints, double *x, double *y, double *z)
 Returns the points on the airplane geometry in global coordinates for a given guide curve. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglGetRotorCount (TiglCPACSConfigurationHandle cpacsHandle, int *rotorCountPtr)
 Returns the number of rotors in a CPACS configuration. More...
 
TIGL_COMMON_EXPORT const char * tiglGetVersion ()
 Returns the version number of this TIGL version. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglGetWingCount (TiglCPACSConfigurationHandle cpacsHandle, int *wingCountPtr)
 Returns the number of wings in a CPACS configuration. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglIntersectComponents (TiglCPACSConfigurationHandle cpacsHandle, const char *componentUidOne, const char *componentUidTwo, char **intersectionID)
 tiglIntersectComponents computes the intersection line(s) between two shapes specified by their CPACS uid. It returns an intersection ID for further computations on the result. To query points on the intersection line, tiglIntersectGetPoint has to be called. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglIntersectGetLineCount (TiglCPACSConfigurationHandle cpacsHandle, const char *intersectionID, int *lineCount)
 tiglIntersectGetLineCount return the number of intersection lines computed by tiglIntersectComponents or tiglIntersectWithPlane for the given intersectionID. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglIntersectGetPoint (TiglCPACSConfigurationHandle cpacsHandle, const char *intersectionID, int lineIdx, double eta, double *pointX, double *pointY, double *pointZ)
 tiglIntersectGetPoint samples a point on an intersection line calculated by tiglIntersectComponents or tiglIntersectWithPlane. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglIntersectWithPlane (TiglCPACSConfigurationHandle cpacsHandle, const char *componentUid, double px, double py, double pz, double nx, double ny, double nz, char **intersectionID)
 tiglIntersectWithPlane computes the intersection line(s) between a shape and a plane. It returns an intersection ID for further computations on the result. To query points on the intersection line, tiglIntersectGetPoint has to be called. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglIsCPACSConfigurationHandleValid (TiglCPACSConfigurationHandle cpacsHandle, TiglBoolean *isValidPtr)
 Checks if a given CPACS configuration handle is a valid. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglLogSetFileEnding (const char *ending)
 Sets the file ending for logging files. Default is "log". More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglLogSetTimeInFilenameEnabled (TiglBoolean enabled)
 Enables or disables appending a unique date/time identifier inside the log file name (behind the file prefix). By default, the time identifier is enabled. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglLogSetVerbosity (TiglLogLevel level)
 Set the console verbosity level. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglLogToFileDisabled ()
 Disabled file logging. If a log file is currently opened by TiGL it will be closed. The log messages are printed to console. This is the default logging mechanism of TIGL. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglLogToFileEnabled (const char *filePrefix)
 Sets up the tigl logging mechanism to send all log messages into a file. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglLogToFileStreamEnabled (FILE *fp)
 Sets up the tigl logging mechanism to send all log messages into an already opened file. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglOpenCPACSConfiguration (TixiDocumentHandle tixiHandle, const char *configurationUID, TiglCPACSConfigurationHandle *cpacsHandlePtr)
 Opens a CPACS configuration and builds up the data and geometry structure in memory. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglProfileGetBSplineCount (TiglCPACSConfigurationHandle cpacsHandle, const char *profileUID, int *curveCount)
 Returns the number of curves the given profile is made of. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglProfileGetBSplineData (TiglCPACSConfigurationHandle cpacsHandle, const char *profileUID, int curveid, int nControlPoints, double *cpx, double *cpy, double *cpz, int nKnots, double *knots)
 Returns the B-Spline data of the given profile curve. This includes the knot vector and the control points of the B-Spline. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglProfileGetBSplineDataSizes (TiglCPACSConfigurationHandle cpacsHandle, const char *profileUID, int curveid, int *degree, int *nControlPoints, int *nKnots)
 Returns the B-Spline data sizes for a given curve on a profile. This includes size of the knot vector, size of the control point vector and degree of the spline. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorBladeGetAzimuthAngle (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, double *azimuthAnglePtr)
 Returns the azimuth angle of a rotor blade in degrees. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorBladeGetLocalChord (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, int segmentIndex, double eta, double *chordPtr)
 Returns the local chord length of a rotor blade. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorBladeGetLocalRadius (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, int segmentIndex, double eta, double *radiusPtr)
 Returns the local radius of a rotor blade. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorBladeGetLocalTwistAngle (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, int segmentIndex, double eta, double *twistAnglePtr)
 Returns the local twist angle [deg] of a rotor blade. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorBladeGetPlanformArea (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, double *planformAreaPtr)
 Returns the planform area of the rotor blade. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorBladeGetRadius (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, double *radiusPtr)
 Returns the radius of a rotor blade. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorBladeGetSurfaceArea (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, double *surfaceAreaPtr)
 Returns the surface area of the rotor blade. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorBladeGetTipSpeed (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, double *tipSpeedPtr)
 Returns the tip speed of a rotor blade [m/s]. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorBladeGetVolume (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, double *volumePtr)
 Returns the volume of the rotor blade. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorBladeGetWingIndex (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, int *wingIndexPtr)
 Returns the index of the parent wing definition of a rotor blade. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorBladeGetWingUID (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, char **wingUIDPtr)
 Returns the UID of the parent wing definition of a rotor blade. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorGetIndex (TiglCPACSConfigurationHandle cpacsHandle, const char *rotorUID, int *rotorIndexPtr)
 Returns the Index of a rotor. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorGetRadius (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *radiusPtr)
 Returns the radius of the rotor. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorGetReferenceArea (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *referenceAreaPtr)
 Returns the reference area of the rotor. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorGetRotorBladeCount (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int *rotorBladeCountPtr)
 Returns the total number of rotor blades attached to a rotor. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorGetSolidity (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *solidityPtr)
 Returns the solidity of the rotor. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorGetSurfaceArea (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *surfaceAreaPtr)
 Returns the surface area of the rotor. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorGetTipSpeed (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *tipSpeedPtr)
 Returns the tip speed of the rotor in [m/s]. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorGetTotalBladePlanformArea (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *totalBladePlanformAreaPtr)
 Returns the total blade planform area of the rotor. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorGetUID (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, char **uidNamePtr)
 Returns the UID of a rotor. The string returned must not be deleted by the caller via free(). It will be deleted when the CPACS configuration is closed. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglRotorGetVolume (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *volumePtr)
 Returns the volume of the rotor. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglSaveCPACSConfiguration (const char *configurationUID, TiglCPACSConfigurationHandle cpacsHandle)
 Writes a CPACS configuration based on the data and geometry structure in memory. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingComponentSegmentComputeEtaIntersection (TiglCPACSConfigurationHandle cpacsHandle, const char *componentSegmentUID, double csEta1, double csXsi1, double csEta2, double csXsi2, double eta, double *xsi, TiglBoolean *hasWarning)
 Given a straight line in space defined by a pair of component segment (eta,xsi) coordinates, the function computes the intersection of the line with a component segment iso-eta line. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingComponentSegmentFindSegment (TiglCPACSConfigurationHandle cpacsHandle, const char *componentSegmentUID, double x, double y, double z, char **segmentUID, char **wingUID)
 Returns the segmentUID and wingUID for a given point on a componentSegment. The returned strings must not be freed by the user anymore. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingComponentSegmentGetMaterialCount (TiglCPACSConfigurationHandle cpacsHandle, const char *compSegmentUID, TiglStructureType structureType, double eta, double xsi, int *materialCount)
 Returns the number of materials defined at a point on the wing component segment surface. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingComponentSegmentGetMaterialThickness (TiglCPACSConfigurationHandle cpacsHandle, const char *compSegmentUID, TiglStructureType structureType, double eta, double xsi, int materialIndex, double *thickness)
 Returns one of the material thicknesses of a given point on the wing component segment surface. The number of materials on that point has to be first queried using tiglWingComponentSegmentGetMaterialCount. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingComponentSegmentGetMaterialUID (TiglCPACSConfigurationHandle cpacsHandle, const char *compSegmentUID, TiglStructureType structureType, double eta, double xsi, int materialIndex, char **uid)
 Returns one of the material UIDs of a given point on the wing component segment surface. The number of materials on that point has to be first queried using tiglWingComponentSegmentGetMaterialCount. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingComponentSegmentGetNumberOfSegments (TiglCPACSConfigurationHandle cpacsHandle, const char *componentSegmentUID, int *nsegments)
 Returns the number of segments belonging to a component segment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingComponentSegmentGetPoint (TiglCPACSConfigurationHandle cpacsHandle, const char *componentSegmentUID, double eta, double xsi, double *x, double *y, double *z)
 Returns x,y,z koordinates for a given eta and xsi on a componentSegment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingComponentSegmentGetSegmentIntersection (TiglCPACSConfigurationHandle cpacsHandle, const char *componentSegmentUID, const char *segmentUID, double csEta1, double csXsi1, double csEta2, double csXsi2, double segmentEta, double *segmentXsi, TiglBoolean *hasWarning)
 Computes the intersection of a line (defined by component segment coordinates) with an iso-eta line on a specified wing segment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingComponentSegmentGetSegmentUID (TiglCPACSConfigurationHandle cpacsHandle, const char *componentSegmentUID, int segmentIndex, char **segmentUID)
 Returns the segment UID of a segment belonging to a component segment. The segment is specified with its index, which is in the 1...nsegments. The number of segments nsegments can be queried with tiglWingComponentSegmentGetNumberOfSegments. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingComponentSegmentPointGetSegmentEtaXsi (TiglCPACSConfigurationHandle cpacsHandle, const char *componentSegmentUID, double eta, double xsi, char **wingUID, char **segmentUID, double *segmentEta, double *segmentXsi, double *errorDistance)
 Returns eta, xsi, segmentUID and wingUID for a given eta and xsi on a componentSegment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetChordNormal (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, double eta, double xsi, double *normalXPtr, double *normalYPtr, double *normalZPtr)
 Returns a normal vector on the wing chord surface for a a given wing and segment index. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetChordPoint (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, double eta, double xsi, double *pointXPtr, double *pointYPtr, double *pointZPtr)
 Returns a point on the wing chord surface for a a given wing and segment index. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetComponentSegmentCount (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int *compSegmentCountPtr)
 Returns the number of component segments for a wing in a CPACS configuration. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetComponentSegmentIndex (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, const char *compSegmentUID, int *segmentIndexPtr)
 Returns the Index of a component segment of a wing. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetComponentSegmentUID (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int compSegmentIndex, char **uidNamePtr)
 Returns the UID of a component segment of a wing. The string returned must not be deleted by the caller via free(). It will be deleted when the CPACS configuration is closed. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetIndex (TiglCPACSConfigurationHandle cpacsHandle, const char *wingUID, int *wingIndexPtr)
 Returns the Index of a wing. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetInnerConnectedSegmentCount (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, int *segmentCountPtr)
 Returns the count of wing segments connected to the inner section of a given segment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetInnerConnectedSegmentIndex (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, int n, int *connectedIndexPtr)
 Returns the index (number) of the n-th wing segment connected to the inner section of a given segment. n starts at 1. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetInnerSectionAndElementIndex (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, int *sectionIndexPtr, int *elementIndexPtr)
 Returns the section index and section element index of the inner side of a given wing segment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetInnerSectionAndElementUID (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, char **sectionUIDPtr, char **elementUIDPtr)
 Returns the section UID and section element UID of the inner side of a given wing segment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetLowerPoint (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, double eta, double xsi, double *pointXPtr, double *pointYPtr, double *pointZPtr)
 Returns a point on the lower wing surface for a a given wing and segment index. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetLowerPointAtDirection (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, double eta, double xsi, double dirx, double diry, double dirz, double *pointXPtr, double *pointYPtr, double *pointZPtr, double *errorDistance)
 Returns a point on the lower wing surface for a a given wing and segment index. This function is different from tiglWingGetLowerPoint: First, a point on the wing chord surface is computed (defined by segment index and eta,xsi). Then, a line is constructed, which is defined by this point and a direction given by the user. The intersection of this line with the lower wing surface is finally returned. The point is returned in absolute world coordinates. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetMAC (TiglCPACSConfigurationHandle cpacsHandle, const char *wingUID, double *mac_chord, double *mac_x, double *mac_y, double *mac_z)
 This function calculates location of the quarter of mean aerodynamic chord, and gives the chord lenght as well. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetOuterConnectedSegmentCount (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, int *segmentCountPtr)
 Returns the count of wing segments connected to the outer section of a given segment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetOuterConnectedSegmentIndex (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, int n, int *connectedIndexPtr)
 Returns the index (number) of the n-th wing segment connected to the outer section of a given segment. n starts at 1. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetOuterSectionAndElementIndex (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, int *sectionIndexPtr, int *elementIndexPtr)
 Returns the section index and section element index of the outer side of a given wing segment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetOuterSectionAndElementUID (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, char **sectionUIDPtr, char **elementUIDPtr)
 Returns the section UID and section element UID of the outer side of a given wing segment. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetProfileName (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int sectionIndex, int elementIndex, char **profileNamePtr)
 Returns the name of a wing profile. The string returned must not be deleted by the caller via free(). It will be deleted when the CPACS configuration is closed. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetReferenceArea (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, TiglSymmetryAxis symPlane, double *referenceAreaPtr)
 Returns the reference area of the wing. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetSectionCount (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int *sectionCount)
 Returns the number of sections of a wing. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetSectionUID (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int sectionIndex, char **uidNamePtr)
 Returns the UID of a section of a wing. The string returned must not be deleted by the caller via free(). It will be deleted when the CPACS configuration is closed. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetSegmentCount (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int *segmentCountPtr)
 Returns the number of segments for a wing in a CPACS configuration. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetSegmentEtaXsi (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, double pointX, double pointY, double pointZ, int *segmentIndex, double *eta, double *xsi, int *isOnTop)
 Inverse function to tiglWingGetLowerPoint and tiglWingGetLowerPoint. Calculates to a point (x,y,z) in global coordinates the wing segment coordinates and the wing segment index. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetSegmentIndex (TiglCPACSConfigurationHandle cpacsHandle, const char *segmentUID, int *segmentIndexPtr, int *wingIndexPtr)
 Returns the Index of a segment of a wing. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetSegmentLowerSurfaceAreaTrimmed (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, double eta1, double xsi1, double eta2, double xsi2, double eta3, double xsi3, double eta4, double xsi4, double *surfaceArea)
 Computes the area of the trimmed lower wing segment surface. This function can be e.g. used to determine the area of the wing flaps. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetSegmentSurfaceArea (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, double *surfaceAreaPtr)
 Returns the surface area of a segment of a wing. This includes only the area of the upper and lower wing segment surface and does not include the trailing egde or any closing faces. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetSegmentUID (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, char **uidNamePtr)
 Returns the UID of a segment of a wing. The string returned must not be deleted by the caller via free(). It will be deleted when the CPACS configuration is closed. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetSegmentUpperSurfaceAreaTrimmed (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, double eta1, double xsi1, double eta2, double xsi2, double eta3, double xsi3, double eta4, double xsi4, double *surfaceArea)
 Computes the area of the trimmed upper wing segment surface. This function can be e.g. used to determine the area of the wing flaps. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetSegmentVolume (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, double *volumePtr)
 Returns the volume of a segment of a wing. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetSpan (TiglCPACSConfigurationHandle cpacsHandle, const char *wingUID, double *pSpan)
 Returns the span of a wing. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetSurfaceArea (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, double *surfaceAreaPtr)
 Returns the surface area of the wing. Currently, the area includes also the faces on the wing symmetry plane (in case of a symmetric wing). In coming releases, these faces will not belong anymore to the surface area calculation. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetSymmetry (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, TiglSymmetryAxis *symmetryAxisPtr)
 Returns the Symmetry Enum if the wing has symmetry-axis. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetUID (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, char **uidNamePtr)
 Returns the UID of a wing. The string returned must not be deleted by the caller via free(). It will be deleted when the CPACS configuration is closed. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetUpperPoint (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, double eta, double xsi, double *pointXPtr, double *pointYPtr, double *pointZPtr)
 Returns a point on the upper wing surface for a a given wing and segment index. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetUpperPointAtDirection (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, double eta, double xsi, double dirx, double diry, double dirz, double *pointXPtr, double *pointYPtr, double *pointZPtr, double *errorDistance)
 Returns a point on the upper wing surface for a a given wing and segment index. This function is different from tiglWingGetUpperPoint: First, a point on the wing chord surface is computed (defined by segment index and eta,xsi). Then, a line is constructed, which is defined by this point and a direction given by the user. The intersection of this line with the upper wing surface is finally returned. The point is returned in absolute world coordinates. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetVolume (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, double *volumePtr)
 Returns the volume of the wing. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingGetWettedArea (TiglCPACSConfigurationHandle cpacsHandle, char *wingUID, double *wettedAreaPtr)
 Returns the wetted area of the wing. More...
 
TIGL_COMMON_EXPORT TiglReturnCode tiglWingSegmentPointGetComponentSegmentEtaXsi (TiglCPACSConfigurationHandle cpacsHandle, const char *segmentUID, const char *componentSegmentUID, double segmentEta, double segmentXsi, double *eta, double *xsi)
 Returns eta, xsi coordinates of a componentSegment given segmentEta and segmentXsi on a wing segment. More...
 

Detailed Description

Declaration of the TIGL C interface.

Macro Definition Documentation

#define TIGL_COMMON_EXPORT
#define TIGL_COMPONENT_CONTROLSURF   8192

The Component is a control surface

#define TIGL_COMPONENT_FUSELAGE   8

The Component is a fuselage

#define TIGL_COMPONENT_FUSELSEGMENT   128

The Component is a fuselage segment

#define TIGL_COMPONENT_GENERICSYSTEM   1024

The Component is a generic system

#define TIGL_COMPONENT_LOGICAL   2

A logical component, like a wing segment

#define TIGL_COMPONENT_PHYSICAL   1

A phyisical component like a fuselage, wing, nacelle, something you could touch

#define TIGL_COMPONENT_PLANE   4

The whole aircraft

#define TIGL_COMPONENT_ROTOR   2048

The Component is a rotor

#define TIGL_COMPONENT_ROTORBLADE   4096

The Component is a rotor blade

#define TIGL_COMPONENT_SEGMENT   32

The Component is a general segment

#define TIGL_COMPONENT_WING   16

The Component is a wing

#define TIGL_COMPONENT_WINGCOMPSEGMENT   256

The Component is a wing component segment

#define TIGL_COMPONENT_WINGSEGMENT   64

The Component is a wing segment

#define TIGL_COMPONENT_WINGSHELL   512

The Component is a face of the wing (e.g. upper wing surface)

#define TIGL_H

Typedef Documentation

Typedef for possible algorithm types used in calculations.

Possible values for variables of type TiglAlgorithmCode are:

  • TIGL_INTERPOLATE_LINEAR_WIRE: Use a linear interpolation between the points of a wire.
  • TIGL_INTERPOLATE_BSPLINE_WIRE: Use a BSpline interpolation between the points of a wire.
  • TIGL_APPROXIMATE_BSPLINE_WIRE: Use a BSpline approximation for the points of a wire.
typedef enum TiglBoolean TiglBoolean

Definition of boolean type used in TIGL.

Possible values are:

  • TIGL_FALSE
  • TIGL_TRUE

Datatype for a CPACS configuration handle.

Definition of the different file formats used for import/export used in TIGL.

Possible values are:

  • TIGL_IMPORTEXPORT_IGES: Use IGES format for geometry import/export.
  • TIGL_IMPORTEXPORT_STEP: Use STEP format for geometry import/export.
  • TIGL_IMPORTEXPORT_STL: Use STL format for geometry import/export.
  • TIGL_IMPORTEXPORT_VTK: Use VTK format for geometry import/export.
typedef enum TiglLoftSide TiglLoftSide
typedef enum TiglLogLevel TiglLogLevel

Definition of logging levels.

Possible values are:

  • TILOG_SILENT
  • TILOG_ERROR
  • TILOG_WARNING
  • TILOG_INFO
  • TILOG_DEBUG
  • TILOG_DEBUG1
  • TILOG_DEBUG2
  • TILOG_DEBUG3
  • TILOG_DEBUG4

Definition of error return type.

Possible values are:

  • TIGL_SUCCESS
  • TIGL_ERROR
  • TIGL_NULL_POINTER
  • TIGL_NOT_FOUND
  • TIGL_XML_ERROR
  • TIGL_OPEN_FAILED
  • TIGL_CLOSE_FAILED
  • TIGL_INDEX_ERROR
  • TIGL_STRING_TRUNCATED
  • TIGL_WRONG_TIXI_VERSION
  • TIGL_UID_ERROR
typedef const char** TiglStringList

Definition of Symmetry Axis used in TIGL.

Possible values are:

  • TIGL_NO_SYMMETRY
  • TIGL_X_Y_PLANE
  • TIGL_X_Z_PLANE
  • TIGL_Y_Z_PLANE

Enumeration Type Documentation

Enumerator
C0 
C1 
C2 
Enumerator
TRAILING_EDGE_DEVICE 
LEADING_EDGE_DEVICE 
SPOILER 
Enumerator
GLOBAL_COORDINATE_SYSTEM 
WING_COORDINATE_SYSTEM 
FUSELAGE_COORDINATE_SYSTEM 
Enumerator
UPPER_SIDE 
LOWER_SIDE 
Enumerator
UPPER_SHELL 
LOWER_SHELL 
INNER_STRUCTURE 

Generated Tue Sep 24 2019 15:24:15, by Martin Siggel DLR