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

TiGLViewer crashes when trailing edge GuideCurve is missing #987

Open
LucasKugler opened this issue Dec 20, 2023 · 2 comments
Open

TiGLViewer crashes when trailing edge GuideCurve is missing #987

LucasKugler opened this issue Dec 20, 2023 · 2 comments
Labels

Comments

@LucasKugler
Copy link

In some situations, TiGLViewer crashes when a wing has a guide curve defined a the leading edge, but not at the trailing edge.

I have attached a modified verison of the CPACS example simpleAircraft, where i have added guidecurves to the htp. When commenting out one of the TE guide curves from the VTP (l.1107), TiGL fails to render it but does not crash. When doing the same to the HTP (l.1206) however, there is a hard crash.

example_issue#987.zip

@joergbrech
Copy link
Contributor

I can confirm this. Thanks for the find!

Some more info: Commenting out the VTP TE guide curve in line 1107 gives the error:

ERR 12/20 10:51:59 CTiglMakeLoft.cpp:229] Could not create loft with guide curves. Error code = 2
ERR 12/20 10:51:59 CTiglWingBuilder.cpp:148] CCPACSWingBuilder: Unable to determine wing face names from wing loft.

@joergbrech joergbrech added the bug label Dec 20, 2023
@joergbrech
Copy link
Contributor

joergbrech commented Dec 20, 2023

I think this might be the same as #891, but I would have to verify.

In general, TiGL requires you to define a valid curve network when you use guide curves. That is
1.) Every section curve's start and end point must lie on a guide curve and vice versa
2.) A section curve must always intersect all guide curves (i.e. no hanging nodes) and vice versa

Commenting out one of the TE guide curves violates the first point. Let me try to illustrate with ASCII art. Vertical lines are section curves, horizontal lines are guide curves. Imagine looking at the LE and unraveling the wing shell to a flat surface.

s1      s2
             guide curve lower TE missing
 |     |
 -------     guide curve LE
 |     |
 -------     guide curve upper TE

Since the guide curve for the lower trailing edge is missing, section curves s1 and s2 are not starting at a guide curve.

Still this should be documented properly, error messages should be clear and TiGL should never hard crash.

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

No branches or pull requests

2 participants