Functions | |
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 | 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 | 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 | 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 | tiglFuselageSetGetPointBehavior (TiglCPACSConfigurationHandle cpacsHandle, TiglGetPointBehavior behavior) |
Sets the behavior of the tiglFuselageGetPoint function. More... | |
TiglReturnCode | tiglGetFuselageCount (TiglCPACSConfigurationHandle cpacsHandle, int *fuselageCountPtr) |
Returns the number of fuselages in a CPACS configuration. More... | |
Function to handle fuselage geometry's with TIGL.
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageUID | UID of the fuselage |
[out] | length | the sum of the lengths of all the fuselage segments |
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.
Returns the circumference of a fuselage segment of a given fuselage in dependence of parameters eta with 0.0 <= eta <= 1.0. For eta = 0.0 the point lies on the start profile of the segment, for eta = 1.0 it lies on the end profile of the segment.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of the fuselage, starting at 1 |
[in] | segmentIndex | The index of the segment of the fuselage, starting at 1 |
[in] | eta | eta in the range 0.0 <= eta <= 1.0 |
[out] | circumferencePtr | The Circumference of the fuselage at the given position |
TiglReturnCode tiglFuselageGetCrossSectionArea | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | fuselageSegmentUID, | ||
double | eta, | ||
double * | area | ||
) |
Returns the value of the area of a cross section of a fuselage.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageSegmentUID | UID of the segment |
[in] | eta | Parameter value from where on the given object the section is cut out, eta in the range 0.0 <= eta <= 1.0 |
[out] | area | the area of the given cross section of a given fuselage |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of a fuselage, starting at 1 |
[in] | segmentIndex | The index of a segment, starting at 1 |
[out] | segmentCountPtr | Pointer to the count of connected segments |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of a fuselage, starting at 1 |
[in] | segmentIndex | The index of a segment, starting at 1 |
[in] | n | n-th segment searched, 1 <= n <= tiglFuselageGetEndConnectedSegmentCount(...) |
[out] | connectedIndexPtr | Pointer to the segment index of the n-th connected segment |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of a fuselage, starting at 1 |
[in] | segmentIndex | The index of a segment, starting at 1 |
[out] | sectionIndexPtr | The section index UID the end side |
[out] | elementIndexPtr | The section element UID of the end side |
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.
Important change: The memory necessary for the two UIDs must not to be freed by the user anymore.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of a fuselage, starting at 1 |
[in] | segmentIndex | The index of a segment, starting at 1 |
[out] | sectionUIDPtr | The section UID the end side |
[out] | elementUIDPtr | The section element UID of the end side |
TiglReturnCode tiglFuselageGetIndex | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | fuselageUID, | ||
int * | fuselageIndexPtr | ||
) |
Returns the index of a fuselage.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageUID | The uid of the fuselage |
[out] | fuselageIndexPtr | The index of a fuselage, starting at 1 |
Usage example:
TiglReturnCode returnCode; int fuselageIndex; returnCode = tiglFuselageGetIndex(cpacsHandle, fuselageUID, &fuselageIndex); printf("The Index of the fuselage is %d\n", fuselageIndex);
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageUID | The uid of the fuselage |
[in] | axisPntX | X-coordinate of the point that specifies the axis of rotation |
[in] | axisPntY | Y-coordinate of the point that specifies the axis of rotation |
[in] | axisPntZ | Z-coordinate of the point that specifies the axis of rotation |
[in] | axisDirX | X-coordinate of the direction that specifies the axis of rotation |
[in] | axisDirY | Y-coordinate of the direction that specifies the axis of rotation |
[in] | axisDirZ | Z-coordinate of the direction that specifies the axis of rotation |
[in] | angle | The angle (in Degree) by which the fuselage should be turned on the axis of rotation |
[out] | pointXPtr | Pointer to the x-coordinate of the point in absolute world coordinates |
[out] | pointYPtr | Pointer to the y-coordinate of the point in absolute world coordinates |
[out] | pointZPtr | Pointer to the z-coordinate of the point in absolute world coordinates |
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.
Returns the number of points on a fuselage segment of a given fuselage in dependence of parameters eta and at all x-positions with 0.0 <= eta <= 1.0. For eta = 0.0 the point lies on the start profile of the segment, for eta = 1.0 it lies on the end profile of the segment.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of the fuselage, starting at 1 |
[in] | segmentIndex | The index of the segment of the fuselage, starting at 1 |
[in] | eta | eta in the range 0.0 <= eta <= 1.0 |
[in] | xpos | X position |
[out] | numPointsPtr | Pointer to a integer for the number of intersection points |
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.
Returns the number of points on a fuselage segment of a given fuselage in dependence of parameters eta and at all y-positions with 0.0 <= eta <= 1.0. For eta = 0.0 the point lies on the start profile of the segment, for eta = 1.0 it lies on the end profile of the segment.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of the fuselage, starting at 1 |
[in] | segmentIndex | The index of the segment of the fuselage, starting at 1 |
[in] | eta | eta in the range 0.0 <= eta <= 1.0 |
[in] | ypos | Y position |
[out] | numPointsPtr | Pointer to a interger for the number of intersection points |
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.
Returns a point on a fuselage segment of a given fuselage in dependence of parameters eta and zeta with 0.0 <= eta <= 1.0 and 0.0 <= zeta <= 1.0. For eta = 0.0 the point lies on the start profile of the segment, for eta = 1.0 it lies on the end profile of the segment. For zeta = 0.0 the point is the identical to the start point of the profile wire, for zeta = 1.0 it is identical to the last profile point. The point is returned in absolute world coordinates.
The behavior of this function can be modified using tiglFuselageSetGetPointBehavior. The options are asParametersOnSurface or onLinearLoft. For the first, the inputs are interpreted as normalized parameters on the surface and the point corresponding to these parameters is returned (default). For the second, the inputs are interpreted as eta coordinates along the center line of the fuselage segment, xsi is interpreted as a relative circumference between 0 and 1, and the resulting point lies on the linear loft of the fuselage segment.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of the fuselage, starting at 1 |
[in] | segmentIndex | The index of the segment of the fuselage, starting at 1 |
[in] | eta | eta in the range 0.0 <= eta <= 1.0 |
[in] | zeta | zeta in the range 0.0 <= zeta <= 1.0 |
[out] | pointXPtr | Pointer to the x-coordinate of the point in absolute world coordinates |
[out] | pointYPtr | Pointer to the y-coordinate of the point in absolute world coordinates |
[out] | pointZPtr | Pointer to the z-coordinate of the point in absolute world coordinates |
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).
Returns a point on a fuselage segment of a given fuselage in dependence of parameters eta and at all y-positions with 0.0 <= eta <= 1.0. For eta = 0.0 the point lies on the start profile of the segment, for eta = 1.0 it lies on the end profile of the segment. The angle alpha is calculated in degrees. Alpha=0 degree is meant to be "up" in the direction of the positive z-axis like specifies in cpacs. It's orientation is the mathematical negative rotation direction around the X-axis, i.e. looking in flight direction, an angle of 45 degrees resembles a point on the top-left fuselage. The point is returned in absolute world coordinates.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of the fuselage, starting at 1 |
[in] | segmentIndex | The index of the segment of the fuselage, starting at 1 |
[in] | eta | Eta in the range 0.0 <= eta <= 1.0 |
[in] | alpha | Angle alpha in degrees. No range restrictions. |
[out] | pointXPtr | Pointer to the x-coordinate of the point in absolute world coordinates |
[out] | pointYPtr | Pointer to the y-coordinate of the point in absolute world coordinates |
[out] | pointZPtr | Pointer to the z-coordinate of the point in absolute world coordinates |
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.
Returns a point on a fuselage segment of a given fuselage in dependence of parameters eta and at all y-positions with 0.0 <= eta <= 1.0. For eta = 0.0 the point lies on the start profile of the segment, for eta = 1.0 it lies on the end profile of the segment. The angle alpha is calculated in degrees. It's orientation is the mathematical negative rotation direction around the X-axis, i.e. looking in flight direction, an angle of 45 degrees resembles a point on the top-left fuselage. The parameters y_cs and z_cs must be in absolute world coordinates. The point is returned in absolute world coordinates.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of the fuselage, starting at 1 |
[in] | segmentIndex | The index of the segment of the fuselage, starting at 1 |
[in] | eta | eta in the range 0.0 <= eta <= 1.0 |
[in] | alpha | Angle alpha in degrees. No range restrictions. |
[in] | y_cs | Shifts the origin of the angle alpha in y-direction. |
[in] | z_cs | Shifts the origin of the angle alpha in z-direction. |
[out] | pointXPtr | Pointer to the x-coordinate of the point in absolute world coordinates |
[out] | pointYPtr | Pointer to the y-coordinate of the point in absolute world coordinates |
[out] | pointZPtr | Pointer to the z-coordinate of the point in absolute world coordinates |
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.
Returns a point on a fuselage segment of a given fuselage in dependence of parameters eta and at all y-positions with 0.0 <= eta <= 1.0. For eta = 0.0 the point lies on the start profile of the segment, for eta = 1.0 it lies on the end profile of the segment. The point is returned in absolute world coordinates.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of the fuselage, starting at 1 |
[in] | segmentIndex | The index of the segment of the fuselage, starting at 1 |
[in] | eta | eta in the range 0.0 <= eta <= 1.0 |
[in] | xpos | x position of a cutting plane |
[in] | pointIndex | Defines witch point if more than one. |
[out] | pointXPtr | Pointer to the x-coordinate of the point in absolute world coordinates |
[out] | pointYPtr | Pointer to the y-coordinate of the point in absolute world coordinates |
[out] | pointZPtr | Pointer to the z-coordinate of the point in absolute world coordinates |
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.
Returns a point on a fuselage segment of a given fuselage in dependence of parameters eta and at all y-positions with 0.0 <= eta <= 1.0. For eta = 0.0 the point lies on the start profile of the segment, for eta = 1.0 it lies on the end profile of the segment. The point is returned in absolute world coordinates.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of the fuselage, starting at 1 |
[in] | segmentIndex | The index of the segment of the fuselage, starting at 1 |
[in] | eta | eta in the range 0.0 <= eta <= 1.0 |
[in] | ypos | Y position |
[in] | pointIndex | Defines witch point if more than one. |
[out] | pointXPtr | Pointer to the x-coordinate of the point in absolute world coordinates |
[out] | pointYPtr | Pointer to the y-coordinate of the point in absolute world coordinates |
[out] | pointZPtr | Pointer to the z-coordinate of the point in absolute world coordinates |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of a fuselage, starting at 1 |
[in] | sectionIndex | The index of a section, starting at 1 |
[in] | elementIndex | The index of an element on the section |
[out] | profileNamePtr | The name of the wing profile |
Usage example:
TiglReturnCode returnCode; char* namePtr = 0; returnCode = tiglFuselageGetProfileName(cpacsHandle, fuselage, section, element, &namePtr); printf("Profile name is %s\n", namePtr);
TiglReturnCode tiglFuselageGetSectionCenter | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | fuselageSegmentUID, | ||
double | eta, | ||
double * | pointX, | ||
double * | pointY, | ||
double * | pointZ | ||
) |
Returns the section center of a fuselage.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageSegmentUID | UID of the segment |
[in] | eta | Parameter value from where on the given object the section is cut out, eta in the range 0.0 <= eta <= 1.0 |
[out] | pointX | Pointer to the x-coordinate of the section center point |
[out] | pointY | Pointer to the y-coordinate of the section center point |
[out] | pointZ | Pointer to the z-coordinate of the section center point |
TiglReturnCode tiglFuselageGetSectionCount | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | fuselageIndex, | ||
int * | sectionCount | ||
) |
Returns the number of sections of a fuselage.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of a fuselage, starting at 1 |
[out] | sectionCount | The number of sections of the fuselage |
Usage example:
TiglReturnCode returnCode; int sectionCount = 0; returnCode = tiglFuselageGetSectionUID(cpacsHandle, fuselageIndex, §ionCount); printf("The Number of sections of fuselage %d is %d\n", fuselageIndex, sectionCount);
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of a fuselage, starting at 1 |
[in] | sectionIndex | The index of a section, starting at 1 |
[out] | uidNamePtr | The uid of the fuselage |
Usage example:
TiglReturnCode returnCode; char* uidPtr = 0; returnCode = tiglFuselageGetSectionUID(cpacsHandle, fuselage, sectionUID, &uidPtr); printf("The UID of the section of fuselage %d is %s\n", fuselage, uidPtr);
TiglReturnCode tiglFuselageGetSegmentCount | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | fuselageIndex, | ||
int * | segmentCountPtr | ||
) |
Returns the number of segments for a fuselage in a CPACS configuration.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of the fuselage, starting at 1 |
[out] | segmentCountPtr | Pointer to the number of segments |
TiglReturnCode tiglFuselageGetSegmentIndex | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | segmentUID, | ||
int * | segmentIndexPtr, | ||
int * | fuselageIndexPtr | ||
) |
Returns the Index of a segment of a fuselage.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | segmentUID | The uid of the fuselage |
[out] | segmentIndexPtr | The index of a segment, starting at 1 |
[out] | fuselageIndexPtr | The index of a fuselage, starting at 1 |
Usage example:
TiglReturnCode returnCode; int segmentIndex, fuselageIndex; returnCode = tiglFuselageGetSegmentIndex(cpacsHandle, segmentUID, &segmentIndex, &fuselageIndex); printf("The Index of the segment of fuselage %d is %d\n", fuselageIndex, segmentIndex);
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of a fuselage, starting at 1 |
[in] | segmentIndex | The index of a segment, starting at 1 |
[out] | uidNamePtr | The uid of the fuselage |
Usage example:
TiglReturnCode returnCode; char* uidPtr = 0; returnCode = tiglFuselageGetSegmentUID(cpacsHandle, fuselage, segmentID, &uidPtr); printf("The UID of the segment of fuselage %d is %s\n", fuselage, uidPtr);
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of a fuselage, starting at 1 |
[in] | segmentIndex | The index of a segment, starting at 1 |
[out] | segmentCountPtr | Pointer to the count of connected segments |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of a fuselage, starting at 1 |
[in] | segmentIndex | The index of a segment, starting at 1 |
[in] | n | n-th segment searched, 1 <= n <= tiglFuselageGetStartConnectedSegmentCount(...) |
[out] | connectedIndexPtr | Pointer to the segment index of the n-th connected segment |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of a fuselage, starting at 1 |
[in] | segmentIndex | The index of a segment, starting at 1 |
[out] | sectionIndexPtr | The section UID of the start side |
[out] | elementIndexPtr | The section element UID of the start side |
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.
Important change: The memory necessary for the two UIDs must not to be freed by the user anymore.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of a fuselage, starting at 1 |
[in] | segmentIndex | The index of a segment, starting at 1 |
[out] | sectionUIDPtr | The section UID of the start side |
[out] | elementUIDPtr | The section element UID of the start side |
TiglReturnCode tiglFuselageGetSymmetry | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | fuselageIndex, | ||
TiglSymmetryAxis * | symmetryAxisPtr | ||
) |
Returns the Symmetry Enum if the fuselage has symmetry-axis.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | Index of the fuselage in the cpacs file |
[out] | symmetryAxisPtr | Returning TiglSymmetryAxis enum pointer |
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.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of a fuselage, starting at 1 |
[out] | uidNamePtr | The uid of the fuselage |
Usage example:
TiglReturnCode returnCode; char* uidPtr = 0; returnCode = tiglFuselageGetUID(cpacsHandle, fuselage, &uidPtr); printf("The UID of the fuselage is %s\n", uidPtr);
TiglReturnCode tiglFuselageSetGetPointBehavior | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
TiglGetPointBehavior | behavior | ||
) |
Sets the behavior of the tiglFuselageGetPoint function.
This function sets the behavior of the tiglFuselageGetPoint function. The options are asParameterOnSurface or onLinearLoft. For the first, the inputs are interpreted as normalized parameters on the surface and the point corresponding to these parameters is returned. For the second, the inputs are interpreted as eta coordinates along the center line of the fuselage segment, xsi is interpreted as a relative circumference between 0 and 1, and the resulting point lies on the linear loft of the fuselage segment.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | behavior | enum describing the desired behavior of the function. Possible values are asParameterOnSurface and onLinearLoft. |
TiglReturnCode tiglGetFuselageCount | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int * | fuselageCountPtr | ||
) |
Returns the number of fuselages in a CPACS configuration.
[in] | cpacsHandle | Handle for the CPACS configuration |
[out] | fuselageCountPtr | Pointer to the number of fuselages |