]> OCCT Git - occt.git/commit
0032934: Modelling Algorithms - BRepExtrema_DistShapeShape returns two solutions...
authorddzama <ddzama@opencascade.com>
Thu, 24 Nov 2022 13:24:14 +0000 (16:24 +0300)
committerjfa <jfa@opencascade.com>
Thu, 20 Apr 2023 13:42:07 +0000 (14:42 +0100)
commit8030568c45405f16e4586f442f052a36b469d395
treeaaf2fcc7b7429b22d6c89fafe4eee0b7d6212c48
parent71a56532b6f199b133bbd70e4b7cd0cdffcecbbc
0032934: Modelling Algorithms - BRepExtrema_DistShapeShape returns two solutions instead of one

distmini of two edges returns two solution points instead one.
Second unneeded solution point is the same as first.

The problem was in fact that second edge has continuity C0.
In this case additional extremas analysis performed in special procedure

PERFORM_C0

And second point found in this procedure.
Folowing code of

BRepExtrema_DistanceSS::Perform (variant for Edge/Edge)

we should this additional solution extremas set
to be object of test TRI_SOLUTION before pushing
into main list of solution.
This solves the problem.
Corresponding test and compound with edges has been created.

Additionally, in the function

PERFORM_C0

an obvious error has fixed.
src/BRepExtrema/BRepExtrema_DistanceSS.cxx
tests/bugs/modalg_7/bug32934 [new file with mode: 0644]