Conversation
Cpp-Linter Report
|
|
I'm interpeting So you bring up a good point. Which one of these is correct? If the fallback behavior is intended, maybe it's better to separate |
|
GLOBAL_ANGULAR_EPSILON is meant to detect too small/large angle between vectors. Those angles make any geometric computation unreliable. So first, try to compute a pivot, a triangle vertex where its angle is good enough. Then, if no vertex is found but the triangle is not degenerate (meaning all vertices are not aligned on a thick line), the triangle can be split to generate a smaller triangle where the angles are enough to compute a normal. |
|
Not sure to follow what you mean by separate the two |
|
I think based on your explanation the original code probably implemented the correct semantics then. |
|
If you have a counter example, do not hesitate to reach out. |
fix #1194