Closed merakulix closed 1 month ago
As per our chat on MM: Let's make sure that this doesn't affect the TiGL performance too much. One option could be to activate the test only in debug mode (and optionally: If we have the check in debug mode only, we could use simple assertions rather than exceptions. I believe this is common for checks that are only performed in debug mode)
Attention: Patch coverage is 50.00000%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 70.02%. Comparing base (
a334bd3
) to head (6c4fd02
). Report is 14 commits behind head on master.
Files with missing lines | Patch % | Lines |
---|---|---|
src/geometry/CTiglPatchShell.cpp | 50.00% | 2 Missing :warning: |
I am sorry, could you please have another look at the coverage report?
I am sorry, could you please have another look at the coverage report?
NVM, the uncovered lines are in a fallback implementation for non-planar profiles, which are not supported by TiGL anyway. Constructing a unit test for this exotic case just for the sake of code coverage seems like too much work. Let's merge
Description
Throwing an exception while building the shells, using invalid side caps, prevents TiGL to build invalid solid shapes.
How Has This Been Tested?
Added test in testFuselageStandardProfileRectangle.cpp that checks for exception if side caps are invalid. If rectangular profile wires are built that cannot be used to create valid side caps, the exception is thrown.
Screenshots, that help to understand the changes(if applicable):
This solid (created by a rectangle profile with too large corner radius) is not valid. Building side caps from its closed, but entangled profile wire is not possible. Solids like this will not be built and used mistakenly, if exception is thrown.
Checklist: