TiGL
2.2.3
|
Functions | |
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 | 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 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.
The output vectors of the x, y, and z vectors must be allocated by the user first. The number of guide curve points coincides with the number of points in the corresponding guide curve profile.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | curveUID | UID of the guide curve |
[in] | numPoints | number of guide curve points (this should coincide with the number of guide curve profile points) |
[out] | x | x-values of the guide curve points |
[out] | y | y-values of the guide curve points |
[out] | z | z-values of the guide curve points |
TIGL_COMMON_EXPORT TiglReturnCode tiglProfileGetBSplineCount | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | profileUID, | ||
int * | curveCount | ||
) |
Returns the number of curves the given profile is made of.
The given profile may be a fuselage profile or a wing profile. Typically, wing profiles consist of two curves (lower and upper curve), fuselage profiles consist of only one curve.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | profileUID | UID of the profile |
[out] | curveCount | Number of curves |
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.
The output arrays cpx, cpy, cpz, and knots have to be allocated by the user first. The control point vector arrays must have the size nControlPoints. This value must be queried with tiglProfileGetBSplineDataSizes first. The knot vector array must have the size kKnots. This value has to be queried also using the function tiglProfileGetBSplineDataSizes.
The given profile may be a fuselage profile or a wing profile. Typically, wing profiles consist of two curves (lower and upper curve), fuselage profiles consist of only one curve.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | profileUID | UID of the profile |
[in] | curveid | Index of the curve. Number of curves must be queried with tiglProfileGetBSplineCount. 1 <= index <= count |
[in] | nControlPoints | Size of the control point vector. To be queried with tiglProfileGetBSplineDataSizes first. |
[out] | cpx | X-values of the control point vector. |
[out] | cpy | Y-values of the control point vector. |
[out] | cpz | Z-values of the control point vector. |
[in] | nKnots | Size of the knot vector. To be queried with tiglProfileGetBSplineDataSizes first. |
[out] | knots | Knot vector values. |
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.
The given profile may be a fuselage profile or a wing profile. Typically, wing profiles consist of two curves (lower and upper curve), fuselage profiles consist of only one curve.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | profileUID | UID of the profile |
[in] | curveid | Index of the curve. Number of curves must be queried with tiglProfileGetBSplineCount. 1 <= index <= count |
[out] | degree | Degree of the B-Spline |
[out] | nControlPoints | Size of the control point vector |
[out] | nKnots | Size of the knot vector |