]> OCCT Git - occt.git/commit
0032934: Modelling Algorithms - BRepExtrema_DistShapeShape returns two solutions... CR32934
authorddzama <ddzama@opencascade.com>
Thu, 24 Nov 2022 13:24:14 +0000 (16:24 +0300)
committerddzama <ddzama@opencascade.com>
Tue, 29 Nov 2022 07:56:28 +0000 (10:56 +0300)
commit7a0a64d727ef1b91cb15e6a56fcc0a9434bb9886
treefe7d51e02d0321eead294135f26d30ac2b51ce74
parent057dcfddf77c75cfad6a05e7f7be57d17db01e86
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]