FC_CommonCircleOfTwoSpheres - General Information
Type: |
Function |
Available as of: |
V1.0.3.0 |
Versions: |
Current version |
Calculates the intersection circle of two spheres in the 3-dimensional space.
Calculates the circle in which the spherical surfaces intersect. If the spheres intersect in one point, the radius of the intersection circle is 0. If the spheres do not intersect at all or have a common center, an error is issued.
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General library-independent statement on the diagnostic. A value not equal to ET_Diag.Ok corresponds to an diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Diagnostic message |
Data type |
Description |
---|---|
Intersection circle of the two spheres i_stSphere1 and i_stSphere2 |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
InputParameterInvalid |
46 |
The centers are located on top of each other. |
|
InputParameterInvalid |
23 |
The radius of sphere 1 is outside the valid range. |
|
InputParameterInvalid |
24 |
The radius of sphere 2 is outside the valid range. |
|
InputParameterInvalid |
47 |
The spheres do not intersect. |
Enumeration name: |
CentresEqual |
Enumeration value: |
46 |
Description: |
The centers are located on top of each other. |
Issue |
Cause |
Solution |
---|---|---|
- |
The distance between i_stSphere1.StCentre and i_stSphere2.stCenter is less than Gc_lrZeroTolerance. |
The spheres must not have a common center. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The intersection circle of the two spheres has been calculated successfully.
Enumeration name: |
RadiusRangeSphere1 |
Enumeration value: |
23 |
Description: |
The radius of sphere 1 is outside the valid range. |
Issue |
Cause |
Solution |
---|---|---|
- |
At the input i_stSphere1.lrRadius, a number <= 0 has been applied. |
The radius of the sphere must be greater than 0. |
Enumeration name: |
RadiusRangeSphere2 |
Enumeration value: |
24 |
Description: |
The radius of sphere 2 is outside the valid range. |
Issue |
Cause |
Solution |
---|---|---|
- |
At the input i_stSphere2.lrRadius, a number <= 0 has been applied. |
The radius of the sphere must be greater than 0. |
Enumeration name: |
SpheresNotCutting |
Enumeration value: |
47 |
Description: |
The spheres do not intersect. |
Issue |
Cause |
Solution |
---|---|---|
- |
The two spheres i_stSphere1 and i_stSphere2 do not intersect. |
The distance between the centers of both spheres must not exceed the sum of the spheres' radii. |