Functions | |
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 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 |
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. |
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 |