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.