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 17 sec
without the patch to 1 min 8 sec with the patch.
Result: With patch | Without patch
Ref T78113
