]> 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)
committersmoskvin <smoskvin@opencascade.com>
Sun, 4 Dec 2022 10:39:35 +0000 (13:39 +0300)
commit2f33e34038e1d6fdb373d362917af7a170e9425b
treeeb3a38fbd1e7d652c62125f4cdf7f449e4735b98
parent3eb891ec496520ed05ea35101af6d8497f4d4e87
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]