The distance is calculated as 0 by BRepExtrema_DistShapeShape.

Hello.
The distance between Shape 1 and Shape 2 is calculated as 0 by BRepExtrema_DistShapeShape.
However, the two shapes are obviously far apart. Do you know why the wrong distance is obtained?

[code]


double dValue = -1.0;
try {
    BRepExtrema_DistShapeShape breEDstSS( shape1, shape2 );
    if ( breEDstSS.IsDone() == Standard_False ){
        return -1.0;
    }
    dValue = breEDstSS.Value();
}
catch( const Standard_Failure& theFailure ) {
}

[Environment]


Opencascade: V7.6.3
OS: Windows 10 Pro 64bit
CPU: Intel(R) Core(TM) i7-10510U
Memory: 16GB

Image

Best regards.

Mikhail Sazonov's picture

This problem looks like a bug. Please feel free to register it in the bugtracker.