Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in API function "tiglWingGetSegmentUpperSurfaceAreaTrimmed" #961

Closed
AntonReiswich opened this issue Apr 24, 2023 · 0 comments · Fixed by #960
Closed

Fix bug in API function "tiglWingGetSegmentUpperSurfaceAreaTrimmed" #961

AntonReiswich opened this issue Apr 24, 2023 · 0 comments · Fixed by #960
Assignees

Comments

@AntonReiswich
Copy link
Contributor

Bug Description
The API function tiglWingGetSegmentUpperSurfaceAreaTrimmed(...) terminated with return code 1, when passing the valid arguments (tiglHandle, 1, 1, 0, 0, 0, 1, 0.05, 1, 0.05, 0, double*ReturnValue).

Bug Analysis
This bug arises due to the fact that the implementation of the mentioned function contained a cast from TopoDS_Compound to a TopoDS_Face. As the used test data configuration has the property, that both its upper and lower wing consists of more than one face, respectively, arising through the use of additional guide curves, both the upper and lower wing are given by compounds containing more than one element, respectively. Trying to cast each of these compounds to a face yields an error.

The bug originates due to the fact that earlier, both upper and lower wings consisted of only one face, respectively. Hence, the mentioned conversion was not a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants