BRepExtrema_DistShapeShape and Extrema_ExtFlag

In BRepExtrema_DistShapeShape there is an input flag
const Extrema_ExtFlag F=Extrema_ExtFlag_MINMAX
which is not used in the code.

It should allow to search for mininums or maximums or both.
The lower level algorithms have that flag too, but BRepExtrema_DistShapeShape does not pass it to them.
Maybe the flag management has not been implemented everywhere yet?

I need minimums only and it would obviously be faster.
What do I risk if I modify BRepExtrema_DistShapeShape (in my copy of OCC) and pass the flag down?

Thanks a lot.

Forum supervisor's picture

Dear Mauro,
The issue is registered in OCCT Mantis Bug Tracker with ID = 26544.
You can track its history.
Best regards

Mauro Mariotti's picture

Thank you,
I have done it in our copy of OCC 6.3.0 and it is useful, but only in some cases:
among Extrema_ExtPC, Extrema_ExtCC, etc., some have got the minmax flag, some have not and some have it but it is not used.