3.0.0
tigl.h File Reference

Declaration of the TIGL C interface. More...

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

Macros

#define TIGL_COMMON_EXPORT
 
#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 TiglCoordinateSystem TiglCoordinateSystem
 
typedef int TiglCPACSConfigurationHandle
 Datatype for a CPACS configuration handle. More...
 
typedef unsigned long TiglGeometricComponentIntent
 
typedef enum TiglGeometricComponentIntentFlags TiglGeometricComponentIntentFlags
 
typedef enum TiglGeometricComponentType TiglGeometricComponentType
 
typedef enum TiglGetPointBehavior TiglGetPointBehavior
 
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 enum TiglShapeModifier TiglShapeModifier
 
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  TiglAxis { TIGL_NO_AXIS = 0, TIGL_X_AXIS = 1, TIGL_Y_AXIS = 2, TIGL_Z_AXIS = 3 }
 
enum  TiglBoolean { TIGL_FALSE = 0, TIGL_TRUE = 1 }
 
enum  TiglContinuity { C0 = 0, C1 = 1, C2 = 2 }
 
enum  TiglCoordinateSystem { GLOBAL_COORDINATE_SYSTEM = 0, WING_COORDINATE_SYSTEM = 1, FUSELAGE_COORDINATE_SYSTEM = 2 }
 
enum  TiglGeometricComponentIntentFlags { TIGL_INTENT_PHYSICAL = 1, TIGL_INTENT_LOGICAL = 2, TIGL_INTENT_INNER_STRUCTURE = 4, TIGL_INTENT_OUTER_AERO_SURFACE = 8 }
 
enum  TiglGeometricComponentType {
  TIGL_COMPONENT_PLANE, TIGL_COMPONENT_FUSELAGE, TIGL_COMPONENT_WING, TIGL_COMPONENT_SEGMENT,
  TIGL_COMPONENT_WINGSEGMENT, TIGL_COMPONENT_FUSELSEGMENT, TIGL_COMPONENT_WINGCOMPSEGMENT, TIGL_COMPONENT_WINGSHELL,
  TIGL_COMPONENT_WINGRIB, TIGL_COMPONENT_WINGSPAR, TIGL_COMPONENT_WINGCELL, TIGL_COMPONENT_GENERICSYSTEM,
  TIGL_COMPONENT_ROTOR, TIGL_COMPONENT_ROTORBLADE, TIGL_COMPONENT_ATTACHED_ROTORBLADE, TIGL_COMPONENT_PRESSURE_BULKHEAD,
  TIGL_COMPONENT_CROSS_BEAM_STRUT, TIGL_COMPONENT_CARGO_DOOR, TIGL_COMPONENT_LONG_FLOOR_BEAM, TIGL_COMPONENT_EXTERNAL_OBJECT,
  TIGL_COMPONENT_FARFIELD, TIGL_COMPONENT_ENGINE_PYLON, TIGL_COMPONENT_ENGINE_NACELLE, TIGL_COMPONENT_OTHER
}
 
enum  TiglGetPointBehavior { asParameterOnSurface = 0, onLinearLoft, numGetPointBehaviors }
 Options for the behavior of the GetPoint functions. More...
 
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  TiglShapeModifier { UNMODIFIED_SHAPE = 0, SHARP_TRAILINGEDGE = 1, BLUNT_TRAILINGEDGE = 2 }
 
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

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...
 
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...
 
TiglReturnCode tiglComponentGetHashCode (TiglCPACSConfigurationHandle cpacsHandle, const char *componentUID, int *hashCodePtr)
 Returns a unique HashCode for a geometric component. More...
 
TiglReturnCode tiglConfigurationGetBoundingBox (TiglCPACSConfigurationHandle cpacsHandle, double *minX, double *minY, double *minZ, double *maxX, double *maxY, double *maxZ)
 Computes the bounding box coordinates of the configuration. More...
 
TiglReturnCode tiglConfigurationGetLength (TiglCPACSConfigurationHandle cpacsHandle, double *pLength)
 Returns the length of the plane. More...
 
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 tiglFuselageGetCenterLineLength (TiglCPACSConfigurationHandle cpacsHandle, const char *fuselageUID, double *length)
 Returns the length of center line of the given fuselage with all its segments which connects all the center points of the cross sections of the fuselage. More...
 
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...
 
TiglReturnCode tiglFuselageGetCrossSectionArea (TiglCPACSConfigurationHandle cpacsHandle, const char *fuselageSegmentUID, double eta, double *area)
 Returns the value of the area of a cross section of a fuselage. More...
 
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...
 
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...
 
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...
 
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...
 
TiglReturnCode tiglFuselageGetIndex (TiglCPACSConfigurationHandle cpacsHandle, const char *fuselageUID, int *fuselageIndexPtr)
 Returns the index of a fuselage. More...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
TiglReturnCode tiglFuselageGetSectionCenter (TiglCPACSConfigurationHandle cpacsHandle, const char *fuselageSegmentUID, double eta, double *pointX, double *pointY, double *pointZ)
 Returns the section center of a fuselage. More...
 
TiglReturnCode tiglFuselageGetSectionCount (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int *sectionCount)
 Returns the number of sections of a fuselage. More...
 
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...
 
TiglReturnCode tiglFuselageGetSegmentCount (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int *segmentCountPtr)
 Returns the number of segments for a fuselage in a CPACS configuration. More...
 
TiglReturnCode tiglFuselageGetSegmentIndex (TiglCPACSConfigurationHandle cpacsHandle, const char *segmentUID, int *segmentIndexPtr, int *fuselageIndexPtr)
 Returns the Index of a segment of a fuselage. More...
 
TiglReturnCode tiglFuselageGetSegmentSurfaceArea (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, double *surfaceAreaPtr)
 Returns the surface area of a segment of a fuselage. More...
 
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...
 
TiglReturnCode tiglFuselageGetSegmentVolume (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, double *volumePtr)
 Returns the volume of a segment of a fuselage. More...
 
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...
 
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...
 
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...
 
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...
 
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...
 
TiglReturnCode tiglFuselageGetSymmetry (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, TiglSymmetryAxis *symmetryAxisPtr)
 Returns the Symmetry Enum if the fuselage has symmetry-axis. More...
 
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...
 
TiglReturnCode tiglFuselageGetVolume (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, double *volumePtr)
 Returns the volume of the fuselage. More...
 
TiglReturnCode tiglFuselageSetGetPointBehavior (TiglCPACSConfigurationHandle cpacsHandle, TiglGetPointBehavior behavior)
 Sets the behavior of the tiglFuselageGetPoint function. More...
 
TiglReturnCode tiglGetCPACSTixiHandle (TiglCPACSConfigurationHandle cpacsHandle, TixiDocumentHandle *tixiHandlePtr)
 Returns the underlying TixiDocumentHandle for a given CPACS configuration handle. More...
 
TiglReturnCode tiglGetCurveIntersection (TiglCPACSConfigurationHandle cpacsHandle, const char *curvesID1, int curve1Idx, const char *curvesID2, int curve2Idx, double tolerance, char **intersectionID)
 tiglGetCurveIntersection computes intersection point of two (intersection) curves. Both curves are the result of a previous intersection (e.g. Fuselage-Wing Intersection). More...
 
TiglReturnCode tiglGetCurveIntersectionCount (TiglCPACSConfigurationHandle cpacsHandle, const char *intersectionID, int *pointCount)
 tiglGetCurveIntersectionCount returns the number of intersection points computed by tiglGetCurveIntersection for the given intersectionID. More...
 
TiglReturnCode tiglGetCurveIntersectionPoint (TiglCPACSConfigurationHandle cpacsHandle, const char *intersectionID, int pointIdx, double *pointX, double *pointY, double *pointZ)
 tiglGetCurveIntersectionPoint returns an intersection point calculated by tiglGetCurveIntersection More...
 
TiglReturnCode tiglGetCurveParameter (TiglCPACSConfigurationHandle cpacsHandle, const char *curveID, int curveIdx, double pointX, double pointY, double pointZ, double *eta)
 tiglGetCurveParameter projects a point onto a curve of an intersection line. The intersection line is specified by a curveID. The curveID can be calculated using tiglIntersectComponents, tiglIntersectWithPlane or tiglIntersectWithPlaneSegment. The function returns the parameter eta of the projected point on the curve. More...
 
const char * tiglGetErrorString (TiglReturnCode errorCode)
 Translates an error code into a string. More...
 
TiglReturnCode tiglGetFuselageCount (TiglCPACSConfigurationHandle cpacsHandle, int *fuselageCountPtr)
 Returns the number of fuselages in a CPACS configuration. More...
 
TiglReturnCode tiglGetRotorCount (TiglCPACSConfigurationHandle cpacsHandle, int *rotorCountPtr)
 Returns the number of rotors in a CPACS configuration. More...
 
const char * tiglGetVersion ()
 Returns the version number of this TIGL version. More...
 
TiglReturnCode tiglGetWingCount (TiglCPACSConfigurationHandle cpacsHandle, int *wingCountPtr)
 Returns the number of wings in a CPACS configuration. More...
 
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...
 
TiglReturnCode tiglIntersectGetLineCount (TiglCPACSConfigurationHandle cpacsHandle, const char *intersectionID, int *lineCount)
 tiglIntersectGetLineCount returns the number of intersection lines computed by tiglIntersectComponents, tiglIntersectWithPlane or tiglIntersectWithPlaneSegment for the given intersectionID. More...
 
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, tiglIntersectWithPlane or tiglIntersectWithPlaneSegment. More...
 
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...
 
TiglReturnCode tiglIntersectWithPlaneSegment (TiglCPACSConfigurationHandle cpacsHandle, const char *componentUid, double p1x, double p1y, double p1z, double p2x, double p2y, double p2z, double wx, double wy, double wz, char **intersectionID)
 tiglIntersectWithPlaneSegment computes the intersection line(s) between a shape and a plane segment. The plane segment is defined by p(u,v) = P1*(1-u) + P2*u + w*v, with u in [0,1] (see image). More...
 
TiglReturnCode tiglIsCPACSConfigurationHandleValid (TiglCPACSConfigurationHandle cpacsHandle, TiglBoolean *isValidPtr)
 Checks if a given CPACS configuration handle is a valid. More...
 
TiglReturnCode tiglLogSetFileEnding (const char *ending)
 Sets the file ending for logging files. Default is "log". More...
 
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...
 
TiglReturnCode tiglLogSetVerbosity (TiglLogLevel level)
 Set the console verbosity level. More...
 
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...
 
TiglReturnCode tiglLogToFileEnabled (const char *filePrefix)
 Sets up the tigl logging mechanism to send all log messages into a file. More...
 
TiglReturnCode tiglLogToFileStreamEnabled (FILE *fp)
 Sets up the tigl logging mechanism to send all log messages into an already opened file. More...
 
TiglReturnCode tiglOpenCPACSConfiguration (TixiDocumentHandle tixiHandle, const char *configurationUID, TiglCPACSConfigurationHandle *cpacsHandlePtr)
 Opens a CPACS configuration and builds up the data and geometry structure in memory. More...
 
TiglReturnCode tiglProfileGetBSplineCount (TiglCPACSConfigurationHandle cpacsHandle, const char *profileUID, int *curveCount)
 Returns the number of curves the given profile is made of. More...
 
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...
 
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...
 
TiglReturnCode tiglRotorBladeGetAzimuthAngle (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, double *azimuthAnglePtr)
 Returns the azimuth angle of a rotor blade in degrees. More...
 
TiglReturnCode tiglRotorBladeGetLocalChord (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, int segmentIndex, double eta, double *chordPtr)
 Returns the local chord length of a rotor blade. More...
 
TiglReturnCode tiglRotorBladeGetLocalRadius (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, int segmentIndex, double eta, double *radiusPtr)
 Returns the local radius of a rotor blade. More...
 
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...
 
TiglReturnCode tiglRotorBladeGetPlanformArea (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, double *planformAreaPtr)
 Returns the planform area of the rotor blade. More...
 
TiglReturnCode tiglRotorBladeGetRadius (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, double *radiusPtr)
 Returns the radius of a rotor blade. More...
 
TiglReturnCode tiglRotorBladeGetSurfaceArea (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, double *surfaceAreaPtr)
 Returns the surface area of the rotor blade. More...
 
TiglReturnCode tiglRotorBladeGetTipSpeed (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, double *tipSpeedPtr)
 Returns the tip speed of a rotor blade [m/s]. More...
 
TiglReturnCode tiglRotorBladeGetVolume (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, double *volumePtr)
 Returns the volume of the rotor blade. More...
 
TiglReturnCode tiglRotorBladeGetWingIndex (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, int *wingIndexPtr)
 Returns the index of the parent wing definition of a rotor blade. More...
 
TiglReturnCode tiglRotorBladeGetWingUID (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int rotorBladeIndex, char **wingUIDPtr)
 Returns the UID of the parent wing definition of a rotor blade. More...
 
TiglReturnCode tiglRotorGetIndex (TiglCPACSConfigurationHandle cpacsHandle, const char *rotorUID, int *rotorIndexPtr)
 Returns the Index of a rotor. More...
 
TiglReturnCode tiglRotorGetRadius (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *radiusPtr)
 Returns the radius of the rotor. More...
 
TiglReturnCode tiglRotorGetReferenceArea (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *referenceAreaPtr)
 Returns the reference area of the rotor. More...
 
TiglReturnCode tiglRotorGetRotorBladeCount (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, int *rotorBladeCountPtr)
 Returns the total number of rotor blades attached to a rotor. More...
 
TiglReturnCode tiglRotorGetSolidity (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *solidityPtr)
 Returns the solidity of the rotor. More...
 
TiglReturnCode tiglRotorGetSurfaceArea (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *surfaceAreaPtr)
 Returns the surface area of the rotor. More...
 
TiglReturnCode tiglRotorGetTipSpeed (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *tipSpeedPtr)
 Returns the tip speed of the rotor in [m/s]. More...
 
TiglReturnCode tiglRotorGetTotalBladePlanformArea (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *totalBladePlanformAreaPtr)
 Returns the total blade planform area of the rotor. More...
 
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...
 
TiglReturnCode tiglRotorGetVolume (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *volumePtr)
 Returns the volume of the rotor. More...
 
TiglReturnCode tiglSaveCPACSConfiguration (const char *configurationUID, TiglCPACSConfigurationHandle cpacsHandle)
 Writes a CPACS configuration based on the data and geometry structure in memory. More...
 
void tiglSetDebugDataDirectory (const char *directory)
 Set the directory path for debug data. More...
 
TiglReturnCode tiglSetExportOptions (const char *exporter_name, const char *option_name, const char *option_value)
 Sets options for the geometry export. More...
 
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...
 
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...
 
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...
 
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...
 
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...
 
TiglReturnCode tiglWingComponentSegmentGetNumberOfSegments (TiglCPACSConfigurationHandle cpacsHandle, const char *componentSegmentUID, int *nsegments)
 Returns the number of segments belonging to a component segment. More...
 
TiglReturnCode tiglWingComponentSegmentGetPoint (TiglCPACSConfigurationHandle cpacsHandle, const char *componentSegmentUID, double eta, double xsi, double *x, double *y, double *z)
 Returns x,y,z coordinates for a given eta and xsi on a componentSegment. More...
 
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...
 
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...
 
TiglReturnCode tiglWingComponentSegmentPointGetEtaXsi (TiglCPACSConfigurationHandle cpacsHandle, const char *componentSegmentUID, double pX, double pY, double pZ, double *eta, double *xsi, double *errorDistance)
 Projects a points onto the chord face of the wing component segment and returns the eta/xsi coordinates of the point of projection. More...
 
TiglReturnCode tiglWingComponentSegmentPointGetSegmentEtaXsi (TiglCPACSConfigurationHandle cpacsHandle, const char *componentSegmentUID, double eta, double xsi, char **wingUID, char **segmentUID, double *segmentEta, double *segmentXsi)
 Returns eta, xsi, segmentUID and wingUID for a given eta and xsi on a componentSegment. More...
 
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...
 
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...
 
TiglReturnCode tiglWingGetComponentSegmentCount (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int *compSegmentCountPtr)
 Returns the number of component segments for a wing in a CPACS configuration. More...
 
TiglReturnCode tiglWingGetComponentSegmentIndex (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, const char *compSegmentUID, int *segmentIndexPtr)
 Returns the Index of a component segment of a wing. More...
 
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...
 
TiglReturnCode tiglWingGetIndex (TiglCPACSConfigurationHandle cpacsHandle, const char *wingUID, int *wingIndexPtr)
 Returns the Index of a wing. More...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
TiglReturnCode tiglWingGetReferenceArea (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, TiglSymmetryAxis symPlane, double *referenceAreaPtr)
 Returns the reference area of the wing. More...
 
TiglReturnCode tiglWingGetSectionCount (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int *sectionCount)
 Returns the number of sections of a wing. More...
 
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...
 
TiglReturnCode tiglWingGetSegmentCount (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int *segmentCountPtr)
 Returns the number of segments for a wing in a CPACS configuration. More...
 
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...
 
TiglReturnCode tiglWingGetSegmentIndex (TiglCPACSConfigurationHandle cpacsHandle, const char *segmentUID, int *segmentIndexPtr, int *wingIndexPtr)
 Returns the Index of a segment of a wing. More...
 
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...
 
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...
 
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...
 
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...
 
TiglReturnCode tiglWingGetSegmentVolume (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, double *volumePtr)
 Returns the volume of a segment of a wing. More...
 
TiglReturnCode tiglWingGetSpan (TiglCPACSConfigurationHandle cpacsHandle, const char *wingUID, double *pSpan)
 Returns the span of a wing. More...
 
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...
 
TiglReturnCode tiglWingGetSymmetry (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, TiglSymmetryAxis *symmetryAxisPtr)
 Returns the Symmetry Enum if the wing has symmetry-axis. More...
 
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...
 
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...
 
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...
 
TiglReturnCode tiglWingGetVolume (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, double *volumePtr)
 Returns the volume of the wing. More...
 
TiglReturnCode tiglWingGetWettedArea (TiglCPACSConfigurationHandle cpacsHandle, char *wingUID, double *wettedAreaPtr)
 Returns the wetted area of the wing. If the wing has no parent (fuselage), it returns the surface area of the wing. More...
 
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...
 
TiglReturnCode tiglWingSetGetPointBehavior (TiglCPACSConfigurationHandle cpacsHandle, TiglGetPointBehavior behavior)
 Sets the behavior of the tiglWingGetUpperPoint and tiglWingGetLowerPoint functions. More...
 

Detailed Description

Declaration of the TIGL C interface.

Macro Definition Documentation

#define TIGL_COMMON_EXPORT
#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.

typedef unsigned long TiglGeometricComponentIntent

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
GLOBAL_COORDINATE_SYSTEM 
WING_COORDINATE_SYSTEM 
FUSELAGE_COORDINATE_SYSTEM 
Enumerator
TIGL_INTENT_PHYSICAL 

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

TIGL_INTENT_LOGICAL 

A logical component, like a wing segment

TIGL_INTENT_INNER_STRUCTURE 

Part of the aircrafts structure geometry

TIGL_INTENT_OUTER_AERO_SURFACE 

Part of the outer aircraft (wing, fuselage, nacelle)

Options for the behavior of the GetPoint functions.

  • asParameterOnSurface> treats eta-xsi-values as parameters on a surface. This makes sense e.g. for smoothly lofted wings that make heavy use of guide curves.
  • onLinearLoft: eta-xsi-values are coordinates on the chordface for the wing, respectively centerline and relative circumference parameters on the fuselage. The resulting point lies on the linear interpolation of the starting and ending profile of the segment.
Enumerator
asParameterOnSurface 
onLinearLoft 
numGetPointBehaviors 
Enumerator
UPPER_SIDE 
LOWER_SIDE 
Enumerator
UNMODIFIED_SHAPE 
SHARP_TRAILINGEDGE 
BLUNT_TRAILINGEDGE 
Enumerator
UPPER_SHELL 
LOWER_SHELL 
INNER_STRUCTURE