TiGL
2.2.3
|
Functions | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglComponentIntersectionLineCount (TiglCPACSConfigurationHandle cpacsHandle, const char *componentUidOne, const char *componentUidTwo, int *numWires) |
The function returns the number of intersection lines of two geometric components. More... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglComponentIntersectionPoint (TiglCPACSConfigurationHandle cpacsHandle, const char *componentUidOne, const char *componentUidTwo, int lineID, double eta, double *pointXPtr, double *pointYPtr, double *pointZPtr) |
The function returns a point on the intersection line of two geometric components. Often there are more that one intersection line, therefore you need to specify the line. More... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglComponentIntersectionPoints (TiglCPACSConfigurationHandle cpacsHandle, const char *componentUidOne, const char *componentUidTwo, int lineID, const double *etaArray, int numberOfPoints, double *pointXArray, double *pointYArray, double *pointZArray) |
Convienience function to returns a list of points on the intersection line of two geometric components. Often there are more that one intersection line, therefore you need to specify the line. More... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglIntersectComponents (TiglCPACSConfigurationHandle cpacsHandle, const char *componentUidOne, const char *componentUidTwo, char **intersectionID) |
tiglIntersectComponents computes the intersection line(s) between two shapes specified by their CPACS uid. It returns an intersection ID for further computations on the result. To query points on the intersection line, tiglIntersectGetPoint has to be called. More... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglIntersectGetLineCount (TiglCPACSConfigurationHandle cpacsHandle, const char *intersectionID, int *lineCount) |
tiglIntersectGetLineCount return the number of intersection lines computed by tiglIntersectComponents or tiglIntersectWithPlane for the given intersectionID. More... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglIntersectGetPoint (TiglCPACSConfigurationHandle cpacsHandle, const char *intersectionID, int lineIdx, double eta, double *pointX, double *pointY, double *pointZ) |
tiglIntersectGetPoint samples a point on an intersection line calculated by tiglIntersectComponents or tiglIntersectWithPlane. More... | |
TIGL_COMMON_EXPORT TiglReturnCode | tiglIntersectWithPlane (TiglCPACSConfigurationHandle cpacsHandle, const char *componentUid, double px, double py, double pz, double nx, double ny, double nz, char **intersectionID) |
tiglIntersectWithPlane computes the intersection line(s) between a shape and a plane. It returns an intersection ID for further computations on the result. To query points on the intersection line, tiglIntersectGetPoint has to be called. More... | |
Function for boolean calculations on wings/fuselages.
These function currently only implement intersection algorithms between two shapes defined in cpacs ot a shape and a plane. Shapes or geometries are identified with their cpacs uid.
Currently only wings, wing segments, fuselages, and fuselage segments can be used in the intersection routines.
TIGL_COMMON_EXPORT TiglReturnCode tiglComponentIntersectionLineCount | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | componentUidOne, | ||
const char * | componentUidTwo, | ||
int * | numWires | ||
) |
The function returns the number of intersection lines of two geometric components.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | componentUidOne | The UID of the first component |
[in] | componentUidTwo | The UID of the second component |
[out] | numWires | The number of intersection lines |
TIGL_COMMON_EXPORT TiglReturnCode tiglComponentIntersectionPoint | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | componentUidOne, | ||
const char * | componentUidTwo, | ||
int | lineID, | ||
double | eta, | ||
double * | pointXPtr, | ||
double * | pointYPtr, | ||
double * | pointZPtr | ||
) |
The function returns a point on the intersection line of two geometric components. Often there are more that one intersection line, therefore you need to specify the line.
Returns a point on the intersection line between a surface and a wing in dependence of parameter eta which range from 0.0 to 1.0. The point is returned in absolute world coordinates.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | componentUidOne | The UID of the first component |
[in] | componentUidTwo | The UID of the second component |
[in] | lineID | The index of the intersection wire, get wire number with "tiglComponentIntersectionLineCount" |
[in] | eta | eta in the range 0.0 <= eta <= 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 |
TIGL_COMMON_EXPORT TiglReturnCode tiglComponentIntersectionPoints | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | componentUidOne, | ||
const char * | componentUidTwo, | ||
int | lineID, | ||
const double * | etaArray, | ||
int | numberOfPoints, | ||
double * | pointXArray, | ||
double * | pointYArray, | ||
double * | pointZArray | ||
) |
Convienience function to returns a list of points on the intersection line of two geometric components. Often there are more that one intersection line, therefore you need to specify the line.
Returns a point on the intersection line between a surface and a wing in dependence of parameter eta which range from 0.0 to 1.0. The point is returned in absolute world coordinates.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | componentUidOne | The UID of the first component |
[in] | componentUidTwo | The UID of the second component |
[in] | lineID | The index of the intersection wire, get wire number with "tiglComponentIntersectionLineCount" |
[in] | etaArray | Array of eta values in the range 0.0 <= eta <= 1.0. |
[in] | numberOfPoints | The number of points to calculate i.e. the size of the etaArray. |
[out] | pointXArray | Array of x-coordinates of the points in absolute world coordinates. The Array must be preallocated with the size numberOfPoints. |
[out] | pointYArray | Array of y-coordinates of the points in absolute world coordinates. The Array must be preallocated with the size numberOfPoints. |
[out] | pointZArray | Array of z-coordinates of the points in absolute world coordinates. The Array must be preallocated with the size numberOfPoints. |
TIGL_COMMON_EXPORT TiglReturnCode tiglIntersectComponents | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | componentUidOne, | ||
const char * | componentUidTwo, | ||
char ** | intersectionID | ||
) |
tiglIntersectComponents computes the intersection line(s) between two shapes specified by their CPACS uid. It returns an intersection ID for further computations on the result. To query points on the intersection line, tiglIntersectGetPoint has to be called.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | componentUidOne | The UID of the first component |
[in] | componentUidTwo | The UID of the second component |
[out] | intersectionID | A unique identifier that is associated with the computed intersection. |
TIGL_COMMON_EXPORT TiglReturnCode tiglIntersectGetLineCount | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | intersectionID, | ||
int * | lineCount | ||
) |
tiglIntersectGetLineCount return the number of intersection lines computed by tiglIntersectComponents or tiglIntersectWithPlane for the given intersectionID.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | intersectionID | The intersection identifier returned by tiglIntersectComponents or tiglIntersectWithPlane |
[out] | lineCount | Number of intersection lines computed by tiglIntersectComponents or tiglIntersectWithPlane. If no intersection could be computed, line count is 0. |
TIGL_COMMON_EXPORT TiglReturnCode tiglIntersectGetPoint | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | intersectionID, | ||
int | lineIdx, | ||
double | eta, | ||
double * | pointX, | ||
double * | pointY, | ||
double * | pointZ | ||
) |
tiglIntersectGetPoint samples a point on an intersection line calculated by tiglIntersectComponents or tiglIntersectWithPlane.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | intersectionID | The intersection identifier returned by tiglIntersectComponents or tiglIntersectWithPlane |
[in] | lineIdx | Line index to sample from. To get the number of lines, call tiglIntersectGetLineCount. 1 <= lineIdx <= lineCount. |
[in] | eta | Parameter on the curve that determines the point position, with 0 <= eta <= 1. |
[out] | pointX | X coordinate of the resulting point. |
[out] | pointY | Y coordinate of the resulting point. |
[out] | pointZ | Z coordinate of the resulting point. |
TIGL_COMMON_EXPORT TiglReturnCode tiglIntersectWithPlane | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | componentUid, | ||
double | px, | ||
double | py, | ||
double | pz, | ||
double | nx, | ||
double | ny, | ||
double | nz, | ||
char ** | intersectionID | ||
) |
tiglIntersectWithPlane computes the intersection line(s) between a shape and a plane. It returns an intersection ID for further computations on the result. To query points on the intersection line, tiglIntersectGetPoint has to be called.
The shape has to be specified by its CPACS UID. The plane is specified by a central point p on the plane and a normal vector n, which is perpendicular to the plane. The normal vector must not be zero!
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | componentUid | The UID of the CPACS shape |
[in] | px | X Coordinate of the plane center point |
[in] | py | Y Coordinate of the plane center point |
[in] | pz | Z Coordinate of the plane center point |
[in] | nx | X value of the plane normal vector |
[in] | ny | Y value of the plane normal vector |
[in] | nz | Z value of the plane normal vector |
[out] | intersectionID | A unique identifier that is associated with the computed intersection. |