The problem is caused by a lack of prediction in the `isect_line_segment_tri_v3`
that incorrectly confirms some intersections of coplanar segments to the triangle.
The idea of this patch is to use another algorithm to detect intersections.
For this purpose, `isect_tri_tri_v3` was created, aiming to correct, simplify and
optimize the collision code.
In my tests on a cloth with self collision the simulation went from 1 min and 18 sec
without the patch to 1 min 6 sec with the patch.
It might be a good idea to test `isect_tri_tri_epsilon_v3` to see if there is any
improvement in performance.
Result: With patch | Without patch
{F8756636}
Ref T78113