[bug] BRepExtrema_DistShapeShape between a face and a vertex

when the face is a surface of revolution, BRepExtrema_DistShapeShape fails to find a correct solution.
As workaround, I'm using GeomAPI_ProjectPointOnSurf
Let me know if you need more information to reproduce the bug.


Hugues Delorme's picture


I encounter the same problem on a particular case. The first set of shapes is a cylinder and the second set of shapes is a point (vertex). Errors are accumulating strangely as distances are computed between new points and the basis cylinder.

Christian R. Krug's picture

Dear Stephane,

can you still reproduce this bug, or has it vanished in a new OCC version? If it's still persistent, could you provide more detail? I use BRepExtrema_DistShapeShape quite a lot and want to be sure that I always get the correct result. When I did some testing with a general surface of revolution (that is not a cone or cylinder) I always had the same results as with ProjectPointOnSurf.

Regards, Kris

Stephane Routelous's picture

Hi Kris,

the bug is in the current OCC version (6.2.1)
I can dig to see if I still have the brep file for the problem.


Christian R. Krug's picture

Hi Stephane,

I'm sorry, but I didn't see your reply until now. Can you still reproduce this bug in OCC 6.3, and if so, can you send me some code snippets and/or brep file to reproduce the bug?